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: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
    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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to