https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96425
Bug ID: 96425
Summary: [8/9/10/11 regression] internal compiler error in
maybe_process_partial_specialization()
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Keywords: ice-on-invalid-code
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: slyfox at gcc dot gnu.org
Target Milestone: ---
In attempt to find why boost is able to crash gcc at
https://bugs.gentoo.org/730406 creduce stumbled on another crash on invalid
fine:
//$ cat a.cc
struct a {
template <typename> static char ao;
template <class> struct ao<>:
The crash seems to happen on gcc-8.4.0, gcc-9.3.0, gcc-10.2.0 and gcc-11:
$ LANG=C g++-8.4.0 -c a.cc
a.cc:3:27: internal compiler error: Segmentation fault
template <class> struct ao<>:
^~~~
0x9d685f crash_signal
/usr/src/debug/sys-devel/gcc-8.4.0-r1/gcc-8.4.0/gcc/toplev.c:325
0x7f01a75ffc3f ???
/usr/src/debug/sys-libs/glibc-2.31-r6/glibc-2.31/signal/../sysdeps/unix/sysv/linux/x86_64/sigaction.c:0
0x552fce maybe_process_partial_specialization(tree_node*)
/usr/src/debug/sys-devel/gcc-8.4.0-r1/gcc-8.4.0/gcc/cp/pt.c:966
0x51344a cp_parser_class_head
$ LANG=C g++-11.0.0 -c a.cc
a.cc:3:27: internal compiler error: Segmentation fault
3 | template <class> struct ao<>:
| ^~~~
0xc76a0f crash_signal
/usr/src/debug/sys-devel/gcc-11.0.0_pre9999/gcc-11.0.0_pre9999/gcc/toplev.c:328
0x7f790b9d3c3f ???
/usr/src/debug/sys-libs/glibc-2.31-r6/glibc-2.31/signal/../sysdeps/unix/sysv/linux/x86_64/sigaction.c:0
0x75948e maybe_process_partial_specialization(tree_node*)