https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87294
Bug ID: 87294 Summary: [8/9 Regression] dwarf-3 generation fails with ICE Product: gcc Version: 8.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: debug Assignee: unassigned at gcc dot gnu.org Reporter: daniel.f.starke at freenet dot de Target Milestone: --- Created attachment 44690 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44690&action=edit test case Using GCC version 8.2.0 in mingw-w64 compiled with the following configuration fails on the attached test case. Configured with: ../../src/gcc-8.2.0/configure --host=x86_64-w64-mingw32 --enable-languages=c,c++ --enable-seh-exceptions --enable-threads=posix --disable-nls --disable-shared --enable-static --enable-fully-dynamic-string --enable-lto --enable-plugins --enable-libgomp --with-dwarf2 --enable-mingw-wildcard=platform --disable-win32-registry --enable-version-specific-runtime-libs --prefix=/mingw64-64 --with-sysroot=/mingw64-64 --target=x86_64-w64-mingw32 --enable-targets=all --enable-checking=release --with-gmp=/usr/new-gcc/lib/gmp-5.0.5 --with-mpfr=/usr/new-gcc/lib/mpfr-2.4.2 --with-mpc=/usr/new-gcc/lib/mpc-0.9 --with-isl=/usr/new-gcc/lib/isl-0.18 --with-cloog=/usr/new-gcc/lib/cloog-0.18.4 --with-host-libstdcxx='-lstdc++ -lsupc++' --disable-cloog-version-check --enable-cloog-backend=isl Thread model: posix The command-line g++ -Og -gdwarf-3 -fno-omit-frame-pointer -c a.cpp -o a.o returns during RTL pass: final a.cpp: In function 'boost::_bi::bind_t<R, R (*)(B1, B2, B3), typename boost::_bi::list_av_3<A1, A2, A3>::type> boost::bind(R (*)(B1, B2, B3), A1, A2, A3) [with R = int; B1 = void*; B2 = const unsigned char*; B3 = unsigned int; A1 = boost::arg<1>; A2 = boost::arg<2>; A3 = boost::arg<3>]': a.cpp:99:3: internal compiler error: in based_loc_descr, at dwarf2out.c:14272 } ^ libbacktrace could not find executable to open Removing -gdwarf-3 or -fno-omit-frame-pointer does not result in the shown error. This issue does not occur with GCC 7.3.0. The bug report took a while as multidelta needed 25 days to reduce the pre-processed test file (14.6 MiB).