[Bug tree-optimization/87546] [9 Regression] Gcc miscompiles at -O3 on valid code

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Oct 8 12:10:00 GMT 2018


Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
(In reply to graham.stott77 from comment #3)
> 'b' is never assigned a value, so surely it's undefined

No.  b has static storage duration and therefore it is initialized to zero.

More information about the Gcc-bugs mailing list