https://llvm.org/bugs/show_bug.cgi?id=24318
Bug ID: 24318
Summary: Segmentation fault when using nested templated
typedefs
Product: clang
Version: 3.6
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
Created attachment 14674
--> https://llvm.org/bugs/attachment.cgi?id=14674&action=edit
Source code
Some of our code makes clang 3.6.2-1 (Arch Linux) crash.
Based on our code, I crafted a very small example demonstrating this bug.
Basically, we have a templated class A with a nested class B that is also
templated.
Now, we have another templated class C that defines a typedef for A<T>::B<T>.
Finally, we try to use this typedef in the main function.
Clang bails out on this:
$ clang++ clangcrash.cpp
clang: error: unable to execute command: Segmentation fault (core dumped)
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.6.2 (tags/RELEASE_362/final)
Target: x86_64-unknown-linux-gnu
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and
associated run script.
clang: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /tmp/clangcrash-21862e.cpp
clang: note: diagnostic msg: /tmp/clangcrash-21862e.sh
clang: note: diagnostic msg:
********************
Attached, you find the example.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs