[Bug c++/114854] [11/12/13/14/15 Regression] checking ICE with default initializer of const reference member at cp/cp-gimplify.cc:900 since r10-5822

2024-05-15 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114854 --- Comment #3 from GCC Commits --- The trunk branch has been updated by Marek Polacek : https://gcc.gnu.org/g:1a05332bbac98a4c002bef3fb45a3ad9d56b3a71 commit r15-523-g1a05332bbac98a4c002bef3fb45a3ad9d56b3a71 Author: Marek Polacek Date:

[Bug c++/114854] [11/12/13/14/15 Regression] checking ICE with default initializer of const reference member at cp/cp-gimplify.cc:900 since r10-5822

2024-05-07 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114854 --- Comment #2 from Marek Polacek --- I'm using this slightly modified test: ``` class Vector { int m_size; }; struct S { const Vector {}; }; void spawn(S); void test() { spawn({}); } ``` To initialize S we generate: D.2848 =