[Bug c++/111261] No warning for out of order class initialisation when using class initialisers

2023-09-01 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111261 --- Comment #4 from Jonathan Wakely --- The FE already has to do lookup for s in that initializer, so it knows that another member was found.

[Bug c++/111261] No warning for out of order class initialisation when using class initialisers

2023-09-01 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111261 --- Comment #3 from Jonathan Wakely --- (In reply to Richard Biener from comment #2) > In fact with trunk we diagnose this properly with -std=c++17 but not > -std=c++20. So it's probably because c++17 uses extern template for std::string and

[Bug c++/111261] No warning for out of order class initialisation when using class initialisers

2023-09-01 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111261 Richard Biener changed: What|Removed |Added CC||hubicka at gcc dot gnu.org ---

[Bug c++/111261] No warning for out of order class initialisation when using class initialisers

2023-09-01 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111261 Richard Biener changed: What|Removed |Added Keywords||diagnostic Ever confirmed|0