[Bug c++/110416] Error initializing of const union variable with a mutable field

2023-06-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110416 --- Comment #3 from Andrew Pinski --- [dcl.init.general]/8 (specifically 8.2) is what makes the union case valid. Though I wonder what mutable field means in an union if not the whole union is not mutable ...

[Bug c++/110416] Error initializing of const union variable with a mutable field

2023-06-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110416 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |NEW Summary|Error initializi