[LLVMbugs] [Bug 7088] New: Instantiation of anonymous union in function template crashes

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri May 7 07:43:43 PDT 2010


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

           Summary: Instantiation of anonymous union in function template
                    crashes
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: schaub-johannes at web.de
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


template<typename T>
void f() { union { int a; } }
template void f<int>();

clang: /home/js/svn/llvm/tools/clang/lib/Sema/SemaTemplateInstantiate.cpp:1603:
clang::Decl* clang::Sema::LocalInstantiationScope::getInstantiationOf(const
clang::Decl*): Assertion `D->isInvalidDecl() && "declaration was not
instantiated in this scope!"' failed.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list