public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/96425] New: [8/9/10/11 regression] internal compiler error in maybe_process_partial_specialization()
@ 2020-08-03  6:58 slyfox at gcc dot gnu.org
  2020-08-03  7:00 ` [Bug c++/96425] " slyfox at gcc dot gnu.org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: slyfox at gcc dot gnu.org @ 2020-08-03  6:58 UTC (permalink / raw)
  To: gcc-bugs

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*)

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2023-07-08 21:03 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-03  6:58 [Bug c++/96425] New: [8/9/10/11 regression] internal compiler error in maybe_process_partial_specialization() slyfox at gcc dot gnu.org
2020-08-03  7:00 ` [Bug c++/96425] " slyfox at gcc dot gnu.org
2020-08-03  7:01 ` slyfox at gcc dot gnu.org
2020-08-03 19:45 ` mpolacek at gcc dot gnu.org
2020-10-16 12:19 ` rguenth at gcc dot gnu.org
2021-01-14  9:12 ` rguenth at gcc dot gnu.org
2021-01-14 12:25 ` [Bug c++/96425] " slyfox at gcc dot gnu.org
2021-05-17  8:08 ` jakub at gcc dot gnu.org
2022-11-30 21:01 ` pinskia at gcc dot gnu.org
2022-11-30 23:15 ` slyfox at gcc dot gnu.org
2022-12-27 14:25 ` [Bug c++/96425] ICE in maybe_process_partial_specialization() since r11-2735-g634046d1a81b48 marxin at gcc dot gnu.org
2023-07-08 21:03 ` slyfox at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).