[LLVMbugs] [Bug 17224] New: MSVC allows incomplete types as template params

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Sep 13 03:50:25 PDT 2013


            Bug ID: 17224
           Summary: MSVC allows incomplete types as template params
           Product: clang
           Version: trunk
          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


template <class T>
struct InherType : public UndefType {};
template <class T>
class TmplType {};
TmplType<InherType<wchar_t> > x;

MSVC is fine with this even though InherType inherits from a previously
unreferenced type.

Once you try to use the incomplete type, diagnostics are emitted.

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/20130913/fa039951/attachment.html>

More information about the llvm-bugs mailing list