https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88028
Marek Polacek changed:
What|Removed |Added
Status|NEW |RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88028
--- Comment #6 from Marek Polacek ---
But the Comment 5 testcase actually started ICEing with r216750, which makes it
a dup of PR80864.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88028
--- Comment #5 from Marek Polacek ---
And even more:
struct S {};
struct A { S s[1]; };
template
struct R { static constexpr auto h = A{S{}}; };
A foo = R::h;
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88028
--- Comment #4 from Marek Polacek ---
Slightly more reduced:
template
struct A { T e[N]; };
template
A(T)->A;
struct S {};
template
struct R { static constexpr auto h = A{S{}}; };
void
fn ()
{
A foo = R::h;
}
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88028
Martin Liška changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
Last reconfirmed|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88028
--- Comment #2 from Marek Polacek ---
ICE started with r240802. Before that:
88028.C: In instantiation of ‘constexpr const auto R::h’:
88028.C:16:34: required from ‘struct R’
88028.C:23:24: required from here
88028.C:16:34: error: invalid u
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88028
Marek Polacek changed:
What|Removed |Added
Keywords||ice-on-valid-code
--- Comment #1 from Ma