[Bug c++/93018] Zero initialization not occurring for empty struct in member union when converting constructor is used with -O2
john at drouhard dot dev
gcc-bugzilla@gcc.gnu.org
Thu Dec 19 19:42:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93018
--- Comment #1 from John Drouhard <john at drouhard dot dev> ---
I forgot to mention that changing the optimization level to -O3 appears to
"fix" baz2, and it correctly zero-initializes the empty struct in the union.
More information about the Gcc-bugs
mailing list