[LLVMbugs] [Bug 16905] New: __uuidof is modeled strangely semantically, allows strange results
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Aug 15 13:45:45 PDT 2013
http://llvm.org/bugs/show_bug.cgi?id=16905
Bug ID: 16905
Summary: __uuidof is modeled strangely semantically, allows
strange results
Product: clang
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: unassignedclangbugs at nondot.org
Reporter: david.majnemer at gmail.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
consider:
struct __declspec(uuid("{12345678-1234-1234-1234-1234567890aB}")) uuid;
template <struct _GUID *>
struct thing {
};
thing<__uuidof(uuid)> x;
thing<&__uuidof(uuid)> y;
We actually let this through. The only reason why we can mangle it is that we
assume that the template parameter is a reference for 'x'.
--
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/20130815/0a2f955b/attachment.html>
More information about the llvm-bugs
mailing list