https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90966
Bug ID: 90966
Summary: ICE in tsubst_copy, at cp/pt.c:16155
Product: gcc
Version: 9.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: frankhb1989 at gmail dot com
Target Milestone: ---
template<typename I>
void f()
{
using S = signed char;
constexpr const S v[]{0};
}
int main()
{
f<int>();
}
a.cc: In instantiation of 'void f() [with I = int]':
a.cc:10:9: required from here
a.cc:5:20: internal compiler error: in tsubst_copy, at cp/pt.c:16155
5 | constexpr const S v[]{0};
| ^