https://bugs.llvm.org/show_bug.cgi?id=41607
Bug ID: 41607
Summary: crash on dependent variable initialization in in-class
explicit specialization of member class template
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: C++
Assignee: unassignedclangb...@nondot.org
Reporter: richard-l...@metafoo.co.uk
CC: blitzrak...@gmail.com, dgre...@apple.com,
erik.pilking...@gmail.com, llvm-bugs@lists.llvm.org,
richard-l...@metafoo.co.uk
Testcase:
template<int N> struct pm {
template<int...> struct mi;
template<> struct mi<> {
mi() { N; }
};
};
pm<0>::mi<> m;
... crashes in IR generation. An -ast-dump shows that we have not substituted
the template arguments of the enclosing template into the body of
pm<0>::mi<>::mi().
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs