[llvm-bugs] [Bug 27349] New: [ms] __interface cannot inherit from struct that is defined with __declspec(uuid())
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Apr 14 04:39:11 PDT 2016
https://llvm.org/bugs/show_bug.cgi?id=27349
Bug ID: 27349
Summary: [ms] __interface cannot inherit from struct that is
defined with __declspec(uuid())
Product: clang
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: Frontend
Assignee: unassignedclangbugs at nondot.org
Reporter: andrey.kuleshov at intel.com
CC: llvm-bugs at lists.llvm.org
Classification: Unclassified
!- msvc can inherit interface from a struct, but only if this struct is defined
with __declspec(uuid()). Clang fails compilation. -!
========Environment============
OS: Win
Language: c++
Version: trunk (3.9)
========Small Reproducer=======
struct __declspec(uuid("00000000-0000-0000-C000-000000000046")) IUnknown {};
__interface ISfFileIOPropertyPage : public IUnknown {};
=============Error=============
>>>clang-cl:
error: interface type cannot inherit from 'struct IUnknown'
__interface ISfFileIOPropertyPage : public IUnknown {};
>>>cl (msvc):
no diagnostics
Andrey Kuleshov
======
Software Engineer
Intel Compiler Team
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160414/71f469c9/attachment-0001.html>
More information about the llvm-bugs
mailing list