[LLVMbugs] [Bug 7905] New: clang c++ crash with compound literal with array with templated element type

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Aug 14 19:05:42 PDT 2010


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

           Summary: clang c++ crash with compound literal with array with
                    templated element type
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: sharparrow1 at yahoo.com
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


Testcase:
template <typename T> struct M;
void foo() {
  (M<short> []) {{3}};
}

Crashes with:
clang:
/home/eli/llvmgbuild/tools/clang/lib/AST/../../include/clang/AST/DeclCXX.h:382:
const clang::CXXRecordDecl::DefinitionData& clang::CXXRecordDecl::data() const:
Assertion `DefinitionData && "queried property of class with no definition"'
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