[Bug c++/126868] -ftrivial-auto-var-init=uninitialized should be incompatible with -std=c++26 (or at least warn about it)
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Aug 16 06:25:00 GMT 2026
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126868
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
There are hundreds of non-conforming options without warnings.
And this one is actually designed to be without warning and documented that
way, to give users choice between compliance and code speed.
-ftrivial-auto-var-init=uninitialized is basically the same as if
[[indeterminate]] is implied on all declarations that can have it.
More information about the Gcc-bugs
mailing list