This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/88028] internal compiler error: in reshape_init_r, at cp/decl.c:6159
- From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 15 Nov 2018 18:46:35 +0000
- Subject: [Bug c++/88028] internal compiler error: in reshape_init_r, at cp/decl.c:6159
- Auto-submitted: auto-generated
- References: <bug-88028-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88028
--- Comment #5 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
And even more:
struct S {};
struct A { S s[1]; };
template <typename>
struct R { static constexpr auto h = A{S{}}; };
A foo = R<int>::h;