[LLVMbugs] [Bug 22838] Error about incomplete field is issued for inner typedef in incomplete class, but not for incomplete class itself
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon Mar 9 17:49:30 PDT 2015
https:llvm.org/bugs/show_bug.cgi?id=22838
Richard Smith <richard-llvm at metafoo.co.uk> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |richard-llvm at metafoo.co.uk
Resolution|--- |INVALID
--- Comment #4 from Richard Smith <richard-llvm at metafoo.co.uk> ---
C++ [res.on.functions](17.6.4.8)p2 says this about templates defined in the
standard library:
"In particular, the effects are undefined in the following cases:
[...]
-- if an incomplete type (3.9) is used as a template argument when
instantiating a template component, unless specifically allowed for that
component."
In any case, you've not presented evidence indicating a Clang bug. You could
try asking whoever wrote your standard library if they're prepared to allow
your code as an extension.
--
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/20150310/1a4d0a67/attachment.html>
More information about the llvm-bugs
mailing list