https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65274
Mikhail Maltsev <maltsevm at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |maltsevm at gmail dot com --- Comment #1 from Mikhail Maltsev <maltsevm at gmail dot com> --- Actually, I'm not very familiar with debug information-related stuff, but there are two other bug reports, PR57664 and PR63505 involving ICE in the same function - both reproduce on 4.9.x, but not on trunk. The function used to contain an assertion (but it's on line 6837, not 6846), https://github.com/gcc-mirror/gcc/blob/gcc-4_9_2-release/gcc/dwarf2out.c#L6837 which later became a check: https://github.com/michaelforney/arbor/blob/11cfe14a4c9048e5b742c794a5b14bb25b08a373/packages/sys-devel/gcc/files/gcc-4.7.2-should_move_die_to_comdat.patch Perhaps, you could try to perform the build with current version of GCC and tell, if it still reproduces? P.S. Nice title for bug report :).