[LLVMbugs] [Bug 11996] New: ICE Segmentation fault with working template template code
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon Feb 13 12:49:12 PST 2012
http://llvm.org/bugs/show_bug.cgi?id=11996
Bug #: 11996
Summary: ICE Segmentation fault with working template template
code
Product: clang
Version: 3.0
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++0x
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: pubby.8 at gmail.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 8049
--> http://llvm.org/bugs/attachment.cgi?id=8049
Test case
The attached example crashes with this error:
clang-3.1 -std=c++11 test.cpp
Stack dump:
0. Program arguments: /usr/bin/clang-3.1 -cc1 -triple
x86_64-unknown-linux-gnu -emit-obj -mrelax-all -disable-free
-disable-llvm-verifier -main-file-name test.cpp -mrelocation-model static
-mdisable-fp-elim -masm-verbose -mconstructor-aliases -munwind-tables
-target-cpu x86-64 -momit-leaf-frame-pointer -resource-dir
/usr/bin/../lib/clang/3.1 -fmodule-cache-path /var/tmp/clang-module-cache
-internal-isystem /usr/local/include -internal-isystem
/usr/bin/../lib/clang/3.1/include -internal-externc-isystem /include
-internal-externc-isystem /usr/include -std=c++11 -fdeprecated-macro
-fdebug-compilation-dir /home/pubby/prog/cpp/test/src -ferror-limit 19
-fmessage-length 144 -mstackrealign -fgnu-runtime -fobjc-runtime-has-arc
-fobjc-runtime-has-weak -fobjc-fragile-abi -fcxx-exceptions -fexceptions
-fdiagnostics-show-option -fcolor-diagnostics -o /tmp/test-aFIOqT.o -x c++
test.cpp
1. test.cpp:17:35: at annotation token
2. test.cpp:16:1: parsing struct/union/class body 'bar'
clang-3: error: unable to execute command: Segmentation fault
clang-3: error: clang frontend command failed due to signal (use -v to see
invocation)
clang-3: note: diagnostic msg: Please submit a bug report to and include
command line arguments and all diagnostic information.
clang-3: note: diagnostic msg: Preprocessed source(s) and associated run
script(s) are located at:
clang-3: note: diagnostic msg: /tmp/test-dbV5BV.ii
clang-3: note: diagnostic msg: /tmp/test-dbV5BV.sh
The code compiles fine on GCC and seems to be well-formed.
--
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