https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85912
Bug ID: 85912 Summary: -fdump-lang-raw ICE on valid code Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: romain.geissler at amadeus dot com Target Milestone: --- Hi, This simple snippet, when built with -fdump-lang-raw will ICE: cat test.cpp void f() { switch(1) { case 1: break; } } int i; /opt/1A/toolchain/x86_64-2.6.32-v4/bin/g++ -fdump-lang-raw -c test.cpp test.cpp:10:6: internal compiler error: Segmentation fault int i; ^ 0xd88197 ??? /workdir/src/gcc-8.1.1/gcc/toplev.c:325 0xd790dd ??? /workdir/src/gcc-8.1.1/gcc/tree.c:12677 0x6631aa ??? /workdir/src/gcc-8.1.1/gcc/cp/decl2.c:4566 0x1075d15 ??? /workdir/src/gcc-8.1.1/gcc/cp/decl2.c:5007 0xfc21e3 ??? /workdir/src/gcc-8.1.1/gcc/toplev.c:455 0xf20969 ??? /workdir/src/gcc-8.1.1/gcc/toplev.c:2132 0xf1f2ba ??? /workdir/src/gcc-8.1.1/gcc/main.c:39 while it works perfectly fine without -fdump-lang-raw. /opt/1A/toolchain/x86_64-2.6.32-v4/bin/g++ --version g++ (GCC) 8.1.1 20180523 Copyright (C) 2018 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Cheers, Romain