[Bug c++/113124] g++ should relax designated initialiser rules for trivial classes (read: C structures) and C arrays.

2023-12-28 Thread adobriyan at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113124 --- Comment #7 from Alexey Dobriyan --- > fancy C++ extension It is not fancy. C99 initialisers is the only feature where Modern C beats Modern C++.

[Bug c++/113124] g++ should relax designated initialiser rules for trivial classes (read: C structures) and C arrays.

2023-12-27 Thread adobriyan at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113124 --- Comment #5 from Alexey Dobriyan --- My standardspeak is very bad. I think std::is_trivial_v types should have relaxed initialisation ordering, because all C structs and unions are std::is_trivial_v. If I understand this stuff correctly, or

[Bug c++/113124] g++ should relax designated initialiser rules for trivial classes (read: C structures) and C arrays.

2023-12-23 Thread adobriyan at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113124 --- Comment #2 from Alexey Dobriyan --- this is https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99081 but I don't care about the warning, only about error

[Bug c++/113124] g++ should relax designated initialiser rules for trivial classes (read: C structures) and C arrays.

2023-12-23 Thread adobriyan at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113124 --- Comment #1 from Alexey Dobriyan --- This is getting lengthy: Please allow C99 semantics for "simple enough" stuff (read: C structs): * allow reordering * allow duplicating (possibly with warning), * allow holes in the middle of arrays (1-

[Bug c++/113124] New: g++ should relax designated initialiser rules for trivial classes (read: C structures) and C arrays.

2023-12-23 Thread adobriyan at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113124 Bug ID: 113124 Summary: g++ should relax designated initialiser rules for trivial classes (read: C structures) and C arrays. Product: gcc Version: 13.2.1 Status: UNCONFI