[Bug c++/68949] [5/6 Regression] Implicit initialization of array member silently miscompiling.

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Dec 17 12:26:00 GMT 2015


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

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

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

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
This is really weird, can't really bisect this, as the compilers pretty
randomly sometimes emit
    this->s = {};
in Class::Class constructor and other times
    this->s[0].i = -1;
(in the gimple dump).
Say our bisect seed r231644 emits the latter, but my current trunk or week old
trunk on another box gives the former.  Even in the bisect seed, most revisions
give the correct this->s[0].i = -1; version, but some exceptions don't, even
when clearly the changes in those revisions don't touch anything that should
affect this.


More information about the Gcc-bugs mailing list