https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86918
Bug ID: 86918
Summary: internal compiler error: unexpected expression 'v' of
kind template_parm_index
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: ---
/****************** BEGIN SOURCE ******************/
template<class>
struct S {
template<bool...>
struct X;
};
template<>
template<bool v>
struct S<int>::X {
static constexpr bool value = v;
};
static_assert(S<int>::X<true>::value);
/******************* END SOURCE *******************/
<source>: In instantiation of 'struct S<int>::X<true>':
<source>:13:30: required from here
<source>:9:18: internal compiler error: unexpected expression 'v' of kind
template_parm_index
9 | struct S<int>::X {
| ^