https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100175
Bug ID: 100175
Summary: ICE in cp_parser_lookup_name, at cp/parser.c:28265
Product: gcc
Version: 10.3.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: other
Assignee: unassigned at gcc dot gnu.org
Reporter: mkaracsony81 at gmail dot com
Target Milestone: ---
I was unable to save the preprocessed source for this bug. I've tried but when
I re-run the command causing the error, the ICE was gone. I've hit this bug
twice so far, details are as follows:
command line which causes the error:
/sources/gcc-build/./prev-gcc/xg++ -B/sources/gcc-build/./prev-gcc/
-B/usr/x86_64-unknown-linux-gnu/bin/ -nostdinc++
-B/sources/gcc-build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs
-B/sources/gcc-build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs
-I/sources/gcc-build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu
-I/sources/gcc-build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include
-I/sources/gcc-10.3.1-20210420/libstdc++-v3/libsupc++
-L/sources/gcc-build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs
-L/sources/gcc-build/prev-x86_64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs
-fno-PIE -c -g0 -O2 -mtune=generic -flto=jobserver -frandom-seed=1
-flto=jobserver -frandom-seed=1 -DIN_GCC -fno-exceptions -fno-rtti
-fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings
-Wcast-qual -Wno-error=format-diag -Wmissing-format-attribute
-Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros
-Wno-overlength-strings -DHAVE_CONFIG_H -I. -I.
-I/sources/gcc-10.3.1-20210420/gcc -I/sources/gcc-10.3.1-20210420/gcc/.
-I/sources/gcc-10.3.1-20210420/gcc/../include
-I/sources/gcc-10.3.1-20210420/gcc/../libcpp/include
-I/sources/gcc-10.3.1-20210420/gcc/../libdecnumber
-I/sources/gcc-10.3.1-20210420/gcc/../libdecnumber/bid -I../libdecnumber
-I/sources/gcc-10.3.1-20210420/gcc/../libbacktrace -o lra-eliminations.o -MT
lra-eliminations.o -MMD -MP -MF ./.deps/lra-eliminations.TPo
/sources/gcc-10.3.1-20210420/gcc/lra-eliminations.c
error message:
In file included from /sources/gcc-10.3.1-20210420/gcc/lra-eliminations.c:59:
/sources/gcc-10.3.1-20210420/gcc/rtl.h:3448:33: internal compiler error: in
cp_parser_lookup_name, at cp/parser.c:28265
3448 | extern int rtx_addr_can_trap_p (const_rtx);
| ^~~~~~~~~
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://gcc.gnu.org/bugs/> for instructions.
make[3]: *** [Makefile:1117: lra-eliminations.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [Makefile:4946: all-stagetrain-gcc] Error 2
make[1]: *** [Makefile:22613: stagetrain-bubble] Error 2
make: *** [Makefile:22750: profiledbootstrap] Error 2
gcc was configured with:
./configure --prefix=/usr \
--libdir=/usr/lib \
--libexecdir=/usr/lib \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--enable-__cxa_atexit \
--enable-cet \
--enable-cld \
--enable-checking=release \
--enable-gnu-indirect-function \
--enable-gnu-unique-object \
--enable-initfini-array \
--enable-install-libiberty \
--enable-languages=c,c++,lto \
--enable-libgomp \
--enable-libstdcxx-time \
--enable-linker-build-id \
--enable-lto \
--enable-multilib \
--enable-plugin \
--enable-shared \
--enable-threads=posix \
--with-abi=m64 \
--with-arch=x86-64 \
--with-arch_32=x86-64 \
--with-build-config=bootstrap-lto \
--with-fpmath=sse \
--with-linker-hash-style=gnu \
--with-multilib-list=m64,m32 \
--with-system-zlib \
--with-tune=generic \
--with-zstd \
--without-isl \
--enable-libatomic \
--enable-libitm \
--enable-libquadmath \
--enable-libquadmath-support \
--enable-libsanitizer \
--disable-libada \
--disable-libmpx \
--disable-libssp \
--disable-libstdcxx-pch \
--disable-libunwind-exceptions \
--disable-libvtv \
--disable-nls \
--disable-werror \
--host=x86_64-unknown-linux-gnu \
--build=x86_64-unknown-linux-gnu \
--target=x86_64-unknown-linux-gnu
command line:
g++ -m64 -fno-PIE -c -g0 -O2 -mtune=generic -DIN_GCC -fno-exceptions
-fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings
-Wcast-qual -Wno-error=format-diag -Wmissing-format-attribute
-Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros
-Wno-overlength-strings -DHAVE_CONFIG_H -I. -I.
-I/sources/gcc-10.3.1-20210420/gcc -I/sources/gcc-10.3.1-20210420/gcc/.
-I/sources/gcc-10.3.1-20210420/gcc/../include
-I/sources/gcc-10.3.1-20210420/gcc/../libcpp/include
-I/sources/gcc-10.3.1-20210420/gcc/../libdecnumber
-I/sources/gcc-10.3.1-20210420/gcc/../libdecnumber/bid -I../libdecnumber
-I/sources/gcc-10.3.1-20210420/gcc/../libbacktrace -o insn-peep.o -MT
insn-peep.o -MMD -MP -MF ./.deps/insn-peep.TPo insn-peep.c
error message:
GIMPLE decision tree has 3307 leafs, maximum depth 28 and a total number of
13844 nodes
removed 2180 duplicate tails
GENERIC decision tree has 3170 leafs, maximum depth 13 and a total number of
13106 nodes
removed 2120 duplicate tails
In file included from tm_p.h:6,
from insn-peep.c:17:
tm-preds.h: In function 'bool insn_extra_address_constraint(constraint_num)':
tm-preds.h:296:15: internal compiler error: in cp_parser_lookup_name, at
cp/parser.c:28265
296 | return c >= CONSTRAINT_p && c <= CONSTRAINT_Ts;
| ^~~~~~~~~~~~
tm-preds.h:296:15: internal compiler error: Aborted
g++: internal compiler error: Aborted signal terminated program cc1plus
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://gcc.gnu.org/bugs/> for instructions.
make[2]: *** [Makefile:1117: insn-peep.o] Error 4
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [Makefile:4391: all-gcc] Error 2
make: *** [Makefile:956: all] Error 2
this time gcc was configured with:
./configure --prefix=/usr \
--libdir=/usr/lib \
--libexecdir=/usr/lib \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--enable-__cxa_atexit \
--enable-cet \
--enable-cld \
--enable-checking=release \
--enable-gnu-indirect-function \
--enable-gnu-unique-object \
--enable-initfini-array \
--enable-install-libiberty \
--enable-languages=c,c++,lto \
--enable-libgomp \
--enable-libstdcxx-time \
--enable-linker-build-id \
--enable-lto \
--enable-multilib \
--enable-plugin \
--enable-shared \
--enable-threads=posix \
--with-abi=m64 \
--with-arch=x86-64 \
--with-arch_32=x86-64 \
--with-fpmath=sse \
--with-linker-hash-style=gnu \
--with-multilib-list=m64,m32 \
--with-system-zlib \
--with-tune=generic \
--with-zstd \
--without-isl \
--disable-bootstrap \
--disable-libada \
--disable-libatomic \
--disable-libitm \
--disable-libmpx \
--disable-libquadmath \
--disable-libquadmath-support \
--disable-libssp \
--disable-libsanitizer \
--disable-libstdcxx-pch \
--disable-libunwind-exceptions \
--disable-libvtv \
--disable-nls \
--disable-werror \
--host=x86_64-unknown-linux-gnu \
--build=x86_64-unknown-linux-gnu \
--target=x86_64-unknown-linux-gnu