https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86966
Bug ID: 86966
Summary: ICE (Segmentation fault) for an explicit
specialization of a member class template
Product: gcc
Version: 9.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: v.reshetnikov at gmail dot com
Target Milestone: ---
/************* SOURCE *************/
template<class... T>
struct S {
template<T...>
struct X { };
};
template<>
template<>
struct S<>::X { };
S<>::X<> x;
/*********** END SOURCE ***********/
/************* OUTPUT *************/
<source>:11:8: internal compiler error: Segmentation fault
11 | S<>::X<> x;
| ^
Compiler returned: 1
/*********** END OUTPUT ***********/