[Bug c++/80864] [7/8/9/ Regression] Brace-initialization of a constexpr variable of an array in a POD triggers ICE from templates
mpolacek at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Nov 19 20:52:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80864
--- Comment #5 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Another test from PR88028:
struct S {};
struct A { S s[1]; };
template <typename>
struct R { static constexpr auto h = A{S{}}; };
A foo = R<int>::h;
More information about the Gcc-bugs
mailing list