[LLVMbugs] [Bug 6472] New: clang segfault

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Mar 2 14:48:37 PST 2010


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

           Summary: clang segfault
           Product: clang
           Version: trunk
          Platform: Other
        OS/Version: FreeBSD
            Status: NEW
          Keywords: crash-on-invalid
          Severity: normal
          Priority: P5
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: hinokind at gmail.com
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


Created an attachment (id=4368)
 --> (http://llvm.org/bugs/attachment.cgi?id=4368)
testcase

$ cat segv3.cc 
class { friend class foo::bar;


$ clang segv3.cc 
segv3.cc:1:22: error: use of undeclared identifier 'foo'
class { friend class foo::bar;
                     ^
Stack dump:
0.    Program arguments: /usr/local/bin/clang -cc1 -triple
x86_64-segfault-freebsd8.0 -S -disable-free -main-file-name segv3.cc
-mrelocation-model static -mdisable-fp-elim -mconstructor-aliases
-munwind-tables -target-cpu x86-64 -resource-dir /usr/local/lib/clang/1.1
-fmessage-length 157 -fexceptions -fgnu-runtime -fdiagnostics-show-option
-fcolor-diagnostics -o /tmp/cc-uguqgU.s -x c++ segv3.cc 
1.    segv3.cc:1:30: current parser token ';'
2.    segv3.cc:1:1: parsing struct/union/class body
clang: error: compiler command failed due to signal 11 (use -v to see
invocation)


$ clang --version
clang version 1.1 (trunk 97589)
Target: x86_64-segfault-freebsd8.0
Thread model: posix

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