[LLVMbugs] [Bug 7091] New: Assertion `I != E && "Did not find a destructor!

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri May 7 09:09:45 PDT 2010


           Summary: Assertion `I != E && "Did not find a destructor!
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: chris at bubblescope.net
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com

Created an attachment (id=4863)
 --> (http://llvm.org/bugs/attachment.cgi?id=4863)
Example showing destructor problem.

The attached test, reduced from a boost test case run at -O2 (but this reduced
test does not need optimisation) causes clang++ to assert.

This bug was found on x86_64-unknown-linux-gnu.

caj at nyanko:/dev/shm/clang-usagecpp$ clang++ -c /home/caj/Dropbox/destructor.cpp 
clang: DeclCXX.cpp:578: clang::CXXDestructorDecl*
clang::CXXRecordDecl::getDestructor(clang::ASTContext&) const: Assertion `I !=
E && "Did not find a destructor!"' failed.
0  clang           0x00000000014a5806
1  clang           0x00000000014a56ed
2  libpthread.so.0 0x00007fc2d1ebf8f0
3  libc.so.6       0x00007fc2d11afa75 gsignal + 53
4  libc.so.6       0x00007fc2d11b35c0 abort + 384
5  libc.so.6       0x00007fc2d11a8941 __assert_fail + 241
6  clang           0x00000000009c83ec
7  clang           0x000000000077808b
8  clang           0x00000000006d3ffe
9  clang           0x000000000082576a
10 clang           0x000000000082d919
11 clang           0x000000000082a116
12 clang           0x00000000007f43e7
13 clang           0x00000000008022c9
14 clang           0x00000000007f91c5
15 clang           0x0000000000816781
16 clang           0x000000000080218d
17 clang           0x00000000007f90f7
18 clang           0x00000000007f75da
19 clang           0x000000000082b6b2
20 clang           0x000000000082d438
21 clang           0x000000000069403a
22 clang           0x0000000000a5d9eb
23 clang           0x0000000000691bc4
24 clang           0x0000000000437580
25 clang           0x00000000004371eb
26 clang           0x0000000000421417
27 clang           0x0000000000409172
28 clang           0x000000000040dcfe main + 259
29 libc.so.6       0x00007fc2d119ac4d __libc_start_main + 253
30 clang           0x0000000000407b49
Stack dump:
0.      Program arguments: /usr/local/bin/clang -cc1 -triple
x86_64-unknown-linux-gnu -S -disable-free -main-file-name destructor.cpp
-mrelocation-model static -mdisable-fp-elim -mconstructor-aliases
-munwind-tables -target-cpu x86-64 -resource-dir /usr/local/lib/clang/2.0
-ferror-limit 19 -fmessage-length 194 -fexceptions -fgnu-runtime
-fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-QAsF99.s -x c++
1.      <eof> parser at end of file
2.      /home/caj/Dropbox/destructor.cpp:11:3: instantiating function
definition 'basic_parameter<list<int> >::basic_parameter'
clang: error: compiler command failed due to signal 6 (use -v to see

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