[LLVMbugs] [Bug 10146] New: clang++ segfaults on (incorrect) template code
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Jun 16 06:52:37 PDT 2011
http://llvm.org/bugs/show_bug.cgi?id=10146
Summary: clang++ segfaults on (incorrect) template code
Product: clang
Version: 2.9
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Frontend
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: llvmbugz at ghalkes.nl
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=6742)
--> (http://llvm.org/bugs/attachment.cgi?id=6742)
Template classes causing clang++ segfault
When compiling the attached code, by invoking:
clang++ test.cc
causes a segmentation fault in both version 2.8 as included with Ubuntu x86_64,
as well as with the LLVM supplied 2.9 x86_64 and i686 versions.
Stack dump:
0. Program arguments:
/home/gertjan/tmp/clang/clang+llvm-2.9-x86_64-linux.tar/bin/clang -cc1 -triple
x86_64-unknown-linux-gnu -emit-obj -mrelax-all -disable-free
-disable-llvm-verifier -main-file-name test.cc -mrelocation-model static
-mdisable-fp-elim -masm-verbose -mconstructor-aliases -munwind-tables
-target-cpu x86-64 -target-linker-version 2.21.0.20110327
-momit-leaf-frame-pointer -resource-dir
/home/gertjan/tmp/clang/clang+llvm-2.9-x86_64-linux.tar/bin/../lib/clang/2.9
-ferror-limit 19 -fmessage-length 80 -fcxx-exceptions -fexceptions
-fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-hc4Fnt.o
-x c++ test.cc
1. test.cc:11:10: current parser token '{'
2. test.cc:10:1: parsing struct/union/class body 'B'
clang: error: unable to execute command: Segmentation fault
clang: error: clang frontend command failed due to signal 1 (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