[LLVMbugs] [Bug 7355] New: Assertion failed: (DefinitionData && "queried property of class with no definition"), function data, file /Users/thakis/src/llvm/tools/clang/lib/Sema/../../include/clang/AST/DeclCXX.h, line 364.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Jun 11 03:21:35 PDT 2010


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

           Summary: Assertion failed: (DefinitionData && "queried property
                    of class with no definition"), function data, file
                    /Users/thakis/src/llvm/tools/clang/lib/Sema/../../incl
                    ude/clang/AST/DeclCXX.h, line 364.
           Product: clang
           Version: trunk
          Platform: Macintosh
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: nicolasweber at gmx.de
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


$ cat crash.mm
template<typename T1> class A {
  class D;
  D d;
};

$ /Users/thakis/src/llvm/Release/bin/clang++ -v  -c crash.mm
clang version 2.0 (trunk 105794)
Target: i386-apple-darwin9
Thread model: posix
 "/Users/thakis/src/llvm/Release/bin/clang" -cc1 -triple i386-apple-darwin9.0.0
-emit-obj -mrelax-all -disable-free -main-file-name crash.mm -pic-level 1
-mdisable-fp-elim -masm-verbose -target-cpu yonah -v -resource-dir
/Users/thakis/src/llvm/Release/lib/clang/2.0 -ferror-limit 19 -fmessage-length
127 -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o crash.o -x
objective-c++ crash.mm
clang -cc1 version 2.0 based upon llvm 2.8svn hosted on i386-apple-darwin9
ignoring nonexistent directory "/usr/include/c++/4.2.1"
ignoring nonexistent directory "/usr/include/c++/4.2.1/i686-apple-darwin10/"
ignoring nonexistent directory "/usr/include/c++/4.2.1/backward"
#include "..." search starts here:
#include <...> search starts here:
 /usr/include/c++/4.0.0
 /usr/include/c++/4.0.0/i686-apple-darwin8
 /usr/include/c++/4.0.0/backward
 /usr/local/include
 /Users/thakis/src/llvm/Release/lib/clang/2.0/include
 /usr/include
 /System/Library/Frameworks (framework directory)
 /Library/Frameworks (framework directory)
End of search list.
Assertion failed: (DefinitionData && "queried property of class with no
definition"), function data, file
/Users/thakis/src/llvm/tools/clang/lib/Sema/../../include/clang/AST/DeclCXX.h,
line 364.
0  clang             0x015140b8 main + 22059384
1  clang             0x01514e16 main + 22062806
2  libSystem.B.dylib 0x938812bb _sigtramp + 43
3  libSystem.B.dylib 0xffffffff _sigtramp + 1819798895
4  libSystem.B.dylib 0x938f523a raise + 26
5  libSystem.B.dylib 0x93901679 abort + 73
6  libSystem.B.dylib 0x938f63db __assert_rtn + 101
7  clang             0x0036a9cd main + 3539597
8  clang             0x0036ab87 main + 3540039
9  clang             0x003a6d26 main + 3786214
10 clang             0x007a6014 main + 7977172
11 clang             0x007a8da9 main + 7988841
12 clang             0x007aa777 main + 7995447
13 clang             0x0079a530 main + 7929328
14 clang             0x007e792c main + 8245740
15 clang             0x007eb181 main + 8260161
16 clang             0x007eb514 main + 8261076
17 clang             0x007a15c5 main + 7958149
18 clang             0x007f7d8e main + 8312398
19 clang             0x007f8114 main + 8313300
20 clang             0x003018d0 main + 3109264
21 clang             0x000636a4 main + 364388
22 clang             0x00034597 main + 171607
23 clang             0x0003889e main + 188766
24 clang             0x00003ffc _mh_execute_header + 12284
25 clang             0x0000b3fe main + 3262
26 clang             0x00002536 _mh_execute_header + 5430
Stack dump:
0.    Program arguments: /Users/thakis/src/llvm/Release/bin/clang -cc1 -triple
i386-apple-darwin9.0.0 -emit-obj -mrelax-all -disable-free -main-file-name
crash.mm -pic-level 1 -mdisable-fp-elim -masm-verbose -target-cpu yonah -v
-resource-dir /Users/thakis/src/llvm/Release/lib/clang/2.0 -ferror-limit 19
-fmessage-length 127 -fexceptions -fdiagnostics-show-option -fcolor-diagnostics
-o crash.o -x objective-c++ crash.mm 
1.    crash.mm:3:6: current parser token ';'
2.    crash.mm:1:23: parsing struct/union/class body 'A'
clang: error: clang frontend command failed due to signal 6 (use -v to see
invocation)

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