https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96391
David Malcolm <dmalcolm at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dmalcolm at gcc dot gnu.org
--- Comment #9 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
I tried reproducing this using the .ii file (albeit with trunk), but it's not
triggering for me.
(In reply to Michael Cronenworth from comment #0)
[...]
> When I compile it with '-save-temps' to get the preprocessed file no error
> occurs. No error occurs if I compile the preprocessed file either.
...which suggests to me that maybe this is in a diagnostic that relies on
re-reading the sources, such as -Wmisleading-indentation.
Alternatively, the crash is in linemap_compare_locations. This is used by
linemap_location_before_p, which is used by -Wuninitialized and
-Wmaybe-uninitialized.
So those could be a few warnings to try disabling to see if we can narrow this
down; try adding:
-Wno-misleading-indentation
-Wno-uninitialized
-Wno-maybe-uninitialized
and see if one of those fixes it.
Michael: are you able to invoke the crashing command under gdb? Adding
-wrapper gdb,--args
to the g++ invocation will make it invoke cc1plus under the debugger, from
which you can get a backtrace.
(gdb) run
[...hopefully the process crashes...]
(gdb) bt
and hopefully will shed light on where it's crashing.
Hope this is helpful