[LLVMbugs] [Bug 18266] New: Crash on method with dependent return type
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Dec 17 04:38:39 PST 2013
http://llvm.org/bugs/show_bug.cgi?id=18266
Bug ID: 18266
Summary: Crash on method with dependent return type
Product: clang
Version: 3.3
Hardware: Macintosh
OS: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: LLVM Codegen
Assignee: unassignedclangbugs at nondot.org
Reporter: arthur.j.odwyer at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 11744
--> http://llvm.org/bugs/attachment.cgi?id=11744&action=edit
output of "clang++ -std=c++11 -c t.cc -v"
cat >t.cc <<EOF
struct A { int f(); };
template<typename T>
struct B : A {
auto g() -> decltype(T::f());
};
void h() {
B<A> m;
m.g();
}
EOF
clang++ -std=c++11 -c t.cc
Crashes with the attached "-v" output. Relevant snippet:
[...]
1. <eof> parser at end of file
2. t.cc:8:6: LLVM IR generation of declaration 'h'
3. t.cc:8:6: Generating code for declaration 'h'
clang: error: unable to execute command: Segmentation fault: 11
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
Target: x86_64-apple-darwin12.5.0
Thread model: posix
[...]
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20131217/adaca216/attachment.html>
More information about the llvm-bugs
mailing list