https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124380

Oliver Rosten <oliver.rosten at googlemail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |oliver.rosten at googlemail 
dot co
                   |                            |m

--- Comment #2 from Oliver Rosten <oliver.rosten at googlemail dot com> ---
With gcc 16, this no longer needs -ftrivial-auto-var-init. In C++26 mode the
same .DEFERRED_INIT is emitted for erroneous behaviour (P2795), so the testcase
in comment 0 warns with just:

$ g++ -std=c++26 -O1 -Wall -c uninit.cpp
uninit.cpp:5:30: warning: 'D.2801' is used uninitialized [-Wuninitialized]

It does not warn with -std=c++23, at -O0, or with -std=c++26
-ftrivial-auto-var-init=uninitialized. 

gcc 16.2.0, aarch64-apple-darwin

Reply via email to