[Bug c++/97899] [11 Regression] internal compiler error: in split_nonconstant_init_1, at cp/typeck2.c:626
mpolacek at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Nov 19 01:19:04 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97899
--- Comment #8 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Reduced even more:
// PR c++/97899
template <typename T = int>
int fn()
{
return 1;
}
template <typename T>
void bar() {
const int i = int{fn()};
}
More information about the Gcc-bugs
mailing list