[Bug c/89549] [8/9/10 Regression] -Wmisleading-indentation is disabled from this point onwards, since column-tracking was disabled due to the size of the code/headers
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Nov 25 18:56:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89549
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #14 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
I don't see a bug here, it behaves as expected, once you have too long line
somewhere or too many lines, column tracking is disabled and column tracking is
essential for this warning:
/* PR c++/68819: if the column number is zero, we presumably
had a location_t > LINE_MAP_MAX_LOCATION_WITH_COLS, and so
we have no column information.
Act as if no conversion was possible, triggering the
error-handling path in the caller. */
if (!exploc.column)
{
static bool issued_note = false;
if (!issued_note)
{
/* Notify the user the first time this happens. */
issued_note = true;
inform (loc,
"%<-Wmisleading-indentation%> is disabled from this point"
" onwards, since column-tracking was disabled due to"
" the size of the code/headers");
}
return false;
}
This isn't a note that is related to some particular warning, just a message
telling that there won't be any further warnings emitted due to this later.
More information about the Gcc-bugs
mailing list