[LLVMbugs] [Bug 7074] New: Small crashing example

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu May 6 09:03:26 PDT 2010


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

           Summary: Small crashing example
           Product: clang
           Version: unspecified
          Platform: Other
        OS/Version: Linux
            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=4848)
 --> (http://llvm.org/bugs/attachment.cgi?id=4848)
Tiny crashing testcase

The code    a(struct a::a

crashes clang++ with:

clang: Decl.cpp:1550: void
clang::TagDecl::setQualifierInfo(clang::NestedNameSpecifier*,
clang::SourceRange): Assertion `QualifierRange.isInvalid()' failed.             
0  clang           0x00000000014a52a6
1  clang           0x00000000014a518d
2  libpthread.so.0 0x00007fa7816fe8f0
3  libc.so.6       0x00007fa7809eea75 gsignal + 53
4  libc.so.6       0x00007fa7809f25c0 abort + 384
5  libc.so.6       0x00007fa7809e7941 __assert_fail + 241
6  clang           0x00000000009b9ee9
7  clang           0x00000000006d9139
8  clang           0x0000000000a711c0
9  clang           0x0000000000a65a0a
10 clang           0x0000000000a6acea
11 clang           0x0000000000a6a31e
12 clang           0x0000000000a694e7
13 clang           0x0000000000a690ef
14 clang           0x0000000000a629f8
15 clang           0x0000000000a5d2ae
16 clang           0x0000000000a5d317
17 clang           0x0000000000a5cca6
18 clang           0x0000000000a5c57d
19 clang           0x00000000006914dc
20 clang           0x0000000000437558
21 clang           0x00000000004371c3
22 clang           0x00000000004213ef
23 clang           0x0000000000409172
24 clang           0x000000000040dcfe main + 259
25 libc.so.6       0x00007fa7809d9c4d __libc_start_main + 253
26 clang           0x0000000000407b49
Stack dump:
0.      Program arguments: /usr/local/bin/clang -cc1 -triple
x86_64-unknown-linux-gnu -S -disable-free -main-file-name t.bashed.24036.cc
-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 181 -fexceptions -fgnu-runtime
-fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-lNN2N6.s -x c++
t.bashed.24036.cc 
1.      <eof> parser at end of file
clang: error: compiler 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