[Bug tree-optimization/126346] False positive "may be used uninitialized" with -O3, std::variant and std::string
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Jul 22 02:31:23 GMT 2026
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126346
Drea Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target|aarch64-apple-darwin25 |aarch64-*
Host|aarch64-apple-darwin25 |aarch64-*
--- Comment #4 from Drea Pinski <pinskia at gcc dot gnu.org> ---
[apinski@xeond2 gcc]$ ./cc1plus t.cc "-Davailability(...)=" -quiet -W -Wall -O3
Works on x86_64-linux-gnu on the trunk.
Also works on a version of GCC 16 for aarch64-linux-gnu at -O3 from March 2026:
[apinski@xeond2 gcc]$
~/src/upstream-cross-aarch64/install/libexec/gcc/aarch64-linux-gnu/16.0.1/cc1plus
t.cc "-Davailability(...)=" -quiet -W -Wall -O3
But fails with one from April 2026.
Note I had to s/__float128/_Float128/ in the preprocessed source to allow it to
compile for aarch64-linux-gnu.
More information about the Gcc-bugs
mailing list