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

            Bug ID: 116315
           Summary: [14/15 regression] False-positive
                    -Wmaybe-uninitialized at -O3
           Product: gcc
           Version: 14.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: drfiemost at yahoo dot com
  Target Milestone: ---

Created attachment 58888
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58888&action=edit
Preprocessed source

Compiling the attached code at -O3 produces the following warning:

../../../vice-git/src/resid/filter8580new.cc: In constructor
‘reSID::Filter::Filter()’:
../../../vice-git/src/resid/filter8580new.cc:326:54: warning: ‘scaled_voltage’
may be used uninitialized [-Wmaybe-uninitialized]
../../../vice-git/src/resid/filter8580new.cc:301:20: note: ‘scaled_voltage’
declared here


Command to reproduce:

g++ -O3 -Wmaybe-uninitialized filter8580new.i

It has been reported in 14.1 and I get the same with 14.2 and 15.0-20240804
The warning does not show up at -O2, I haven't been able to isolate a single
optimization flag that triggers the issue though.

Reply via email to