https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123281

            Bug ID: 123281
           Summary: [16 Regression] ICE using gcc 20251221 snapshot with
                    openscad-2025.05.01_pre-r1
           Product: gcc
           Version: 16.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ted.d.rodgers at gmail dot com
  Target Milestone: ---

Created attachment 63141
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=63141&action=edit
reduced ii file

Attached reduced OffscreenContextGLX.cc.ii and OffscreenContextGLX.cc.ii.orig

errors with gcc-16:

    g++-16 -c OffscreenContextGLX.cc.ii -pipe -frounding-math -std=c++17
-frounding-math  -mno-direct-extern-access -o OffscreenContextGLX.cc.o

but builds corerctly using gcc-15:

    g++-15 -c OffscreenContextGLX.cc.ii -pipe -frounding-math -std=c++17
-frounding-math  -mno-direct-extern-access -o OffscreenContextGLX.cc.o





OffscreenContextGLX.cc.ii:4:1: internal compiler error: Segmentation fault
    4 | };
      | ^
0x5645b84edba7 internal_error(char const*, ...)
       
/usr/src/debug/sys-devel/gcc-16.0.0_p20251221/gcc-16-20251221/gcc/diagnostic-global-context.cc:787
0x5645b66499ba crash_signal
       
/usr/src/debug/sys-devel/gcc-16.0.0_p20251221/gcc-16-20251221/gcc/toplev.cc:325
0x7f017ea4523f ???
       
/usr/src/debug/sys-libs/glibc-2.42-r3/glibc-2.42/signal/../sysdeps/unix/sysv/linux/x86_64/libc_sigaction.c:0
0x5645b59e2844 tree_check(tree_node*, char const*, int, char const*, tree_code)
       
/usr/src/debug/sys-devel/gcc-16.0.0_p20251221/gcc-16-20251221/gcc/tree.h:3759
0x5645b59e2844 inline_needs_template_parms
       
/usr/src/debug/sys-devel/gcc-16.0.0_p20251221/gcc-16-20251221/gcc/cp/pt.cc:483
0x5645b59e2844 maybe_begin_member_template_processing(tree_node*)
       
/usr/src/debug/sys-devel/gcc-16.0.0_p20251221/gcc-16-20251221/gcc/cp/pt.cc:558
0x5645b5979f7b cp_parser_class_specifier
       
/usr/src/debug/sys-devel/gcc-16.0.0_p20251221/gcc-16-20251221/gcc/cp/parser.cc:29017
0x5645b59344fc cp_parser_type_specifier
       
/usr/src/debug/sys-devel/gcc-16.0.0_p20251221/gcc-16-20251221/gcc/cp/parser.cc:21467
0x5645b5934ba6 cp_parser_decl_specifier_seq
       
/usr/src/debug/sys-devel/gcc-16.0.0_p20251221/gcc-16-20251221/gcc/cp/parser.cc:18038
0x5645b596a623 cp_parser_single_declaration
       
/usr/src/debug/sys-devel/gcc-16.0.0_p20251221/gcc-16-20251221/gcc/cp/parser.cc:35277
0x5645b596ac94 cp_parser_template_declaration_after_parameters
       
/usr/src/debug/sys-devel/gcc-16.0.0_p20251221/gcc-16-20251221/gcc/cp/parser.cc:35034
0x5645b5945265 cp_parser_explicit_template_declaration
       
/usr/src/debug/sys-devel/gcc-16.0.0_p20251221/gcc-16-20251221/gcc/cp/parser.cc:35208
0x5645b5945265 cp_parser_template_declaration_after_export
       
/usr/src/debug/sys-devel/gcc-16.0.0_p20251221/gcc-16-20251221/gcc/cp/parser.cc:35227
0x5645b5945265 cp_parser_template_declaration
       
/usr/src/debug/sys-devel/gcc-16.0.0_p20251221/gcc-16-20251221/gcc/cp/parser.cc:19654
0x5645b5917289 cp_parser_declaration
       
/usr/src/debug/sys-devel/gcc-16.0.0_p20251221/gcc-16-20251221/gcc/cp/parser.cc:16796
0x5645b59eb426 cp_parser_toplevel_declaration
       
/usr/src/debug/sys-devel/gcc-16.0.0_p20251221/gcc-16-20251221/gcc/cp/parser.cc:16900
0x5645b59eb426 cp_parser_translation_unit
       
/usr/src/debug/sys-devel/gcc-16.0.0_p20251221/gcc-16-20251221/gcc/cp/parser.cc:5559
0x5645b59eb426 c_parse_file()
       
/usr/src/debug/sys-devel/gcc-16.0.0_p20251221/gcc-16-20251221/gcc/cp/parser.cc:56314
0x5645b5bb5d80 c_common_parse_file()
       
/usr/src/debug/sys-devel/gcc-16.0.0_p20251221/gcc-16-20251221/gcc/c-family/c-opts.cc:1422
Please submit a full bug report, with preprocessed source (by using
-freport-bug).

Reply via email to