http://llvm.org/bugs/show_bug.cgi?id=17701

David Majnemer <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |[email protected]
         Resolution|---                         |INVALID

--- Comment #1 from David Majnemer <[email protected]> ---
This is undefined behavior as per the C++ standard.

C++11 17.6.4.8 [res.on.functions]/p2:
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.

C++03 17.4.3.6 [lib.res.on.functions]/p2:
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.

-- 
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