[llvm-bugs] [Bug 24511] New: clang segfaults on anonymous struct code
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Aug 19 16:39:30 PDT 2015
https://llvm.org/bugs/show_bug.cgi?id=24511
Bug ID: 24511
Summary: clang segfaults on anonymous struct code
Product: clang
Version: 3.7
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: C++14
Assignee: unassignedclangbugs at nondot.org
Reporter: ryan.burn at gmail.com
CC: llvm-bugs at lists.llvm.org
Classification: Unclassified
this code causes clang to segfault:
template<class T>
auto p1(T x) { return x+1; }
template<class T>
auto f(T a) {
struct {
double x = 3.0;
T y = p1(a);
} result;
return result;
}
int main() {
auto r = f(7.0f);
return 0;
}
--
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/20150819/430e95fc/attachment.html>
More information about the llvm-bugs
mailing list