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: [email protected]
Reporter: [email protected]
CC: [email protected]
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.
_______________________________________________ llvm-bugs mailing list [email protected] http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs
