[Bug c++/88028] internal compiler error: in reshape_init_r, at cp/decl.c:6159
mpolacek at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Nov 15 17:55:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88028
--- Comment #4 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Slightly more reduced:
template <typename T, int N>
struct A { T e[N]; };
template <typename T>
A(T)->A<T, 1>;
struct S {};
template <typename>
struct R { static constexpr auto h = A{S{}}; };
void
fn ()
{
A<S, 1> foo = R<int>::h;
}
More information about the Gcc-bugs
mailing list