[LLVMbugs] [Bug 18133] New: [Windows] __uuidof support
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Dec 4 05:45:31 PST 2013
http://llvm.org/bugs/show_bug.cgi?id=18133
Bug ID: 18133
Summary: [Windows] __uuidof support
Product: clang
Version: trunk
Hardware: PC
OS: Windows XP
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: unassignedclangbugs at nondot.org
Reporter: forderud at gmail.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 11664
--> http://llvm.org/bugs/attachment.cgi?id=11664&action=edit
Code to reproduce
It seems like there is no support for the "__uuidof" operator in clang.
This operator is heavily used in conjunction to COM on Windows.
Attempting to build a small Direct3D example code (attached) with "clang -v
test.cpp -o test.exe" yields the following error:
---
test.cpp:8:37: error: cannot yet mangle expression type CXXUuidofExpr
_COM_SMARTPTR_TYPEDEF(ID3D10Device, __uuidof(ID3D10Device));
^~~~~~~~~~~~~~~~~~~~~~
c:\Program Files (x86)\Microsoft Visual Studio
10.0\VC\INCLUDE\comdef.h:296:60:
note:
expanded from macro '_COM_SMARTPTR_TYPEDEF'
typedef _COM_SMARTPTR<_COM_SMARTPTR_LEVEL2<Interface, &IID> > \
^
---
--
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/20131204/75cc8304/attachment.html>
More information about the llvm-bugs
mailing list