[Bug c++/94276] [9/10 Regression] g++: error: gcc/testsuite/g++.dg/ext/stmtexpr3.C: -fcompare-debug failure since r9-3352-g87bd153645f393a1

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Mar 23 14:29:56 GMT 2020


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

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

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

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
The difference seems to be locus, without -g the locus column is at
A();
^ here
while with -g it is
})
 ^ here
That is because we don't create a STATEMENT_LIST at all if it contains just a
single stmt, but for -g there is also DEBUG_BEGIN_STMT.  Bet we either should
make sure that STATEMENT_LISTs containing only DEBUG_BEGIN_STMT and a single
stmt shouldn't get location at all, or should have the same as the stmt they
contain.


More information about the Gcc-bugs mailing list