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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hubicka at gcc dot gnu.org
          Component|sanitizer                   |tree-optimization
   Target Milestone|---                         |5.0
            Summary|Compare debug failure with  |[5 Regression] Compare
                   |-g3 -fsanitize=undefined    |debug failure with -g3
                   |-fno-sanitize=vptr -O3      |-fsanitize=undefined
                   |                            |-fno-sanitize=vptr -O3

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Seems to be a bug somewhere in ipa-polymorphic-call.c.
In particular, it seems noncall_stmt_may_be_vtbl_ptr_store returns different
results between -g0 and -g - the function apparently walks BLOCKs and
apparently with -g we have in there BLOCK_ABSTRACT_ORIGIN of some inlined dtor,
while for -g0 something has optimized the blocks away.

Honza, can you please have a look?

Reply via email to