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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |wrong-code

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Hmm,
 I noticed that since GCC 7 with -std=c++17, the b.x is not initialized at all.
So the question I have is there a difference between C++ standards here?

Note the issue is we call Base's constructor after doing the zero
initialization and the Base's constructor has a clobber in it which I think is
correct.

This is all front-end generation and not exactly related to the optimizations
directly.
  • [Bug c++/108993] New: ... daniel.gotsch at bluerivertech dot com via Gcc-bugs
    • [Bug c++/108993] ... pinskia at gcc dot gnu.org via Gcc-bugs

Reply via email to