[Bug c++/88028] internal compiler error: in reshape_init_r, at cp/decl.c:6159

2018-11-19 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88028 Marek Polacek changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug c++/88028] internal compiler error: in reshape_init_r, at cp/decl.c:6159

2018-11-15 Thread mpolacek at gcc dot gnu.org
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.

[Bug c++/88028] internal compiler error: in reshape_init_r, at cp/decl.c:6159

2018-11-15 Thread mpolacek at gcc dot gnu.org
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;

[Bug c++/88028] internal compiler error: in reshape_init_r, at cp/decl.c:6159

2018-11-15 Thread mpolacek at gcc dot gnu.org
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; }

[Bug c++/88028] internal compiler error: in reshape_init_r, at cp/decl.c:6159

2018-11-15 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88028 Martin Liška changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug c++/88028] internal compiler error: in reshape_init_r, at cp/decl.c:6159

2018-11-14 Thread mpolacek at gcc dot gnu.org
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

[Bug c++/88028] internal compiler error: in reshape_init_r, at cp/decl.c:6159

2018-11-14 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88028 Marek Polacek changed: What|Removed |Added Keywords||ice-on-valid-code --- Comment #1 from