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

--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
Created attachment 49894
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49894&action=edit
Reduced test-case

Started with r7-6939-g853ef4e5632df328 and it was rejected before:

$ g++ lambda.cpp -O3 -Wall -flto -c -std=c++17
lambda.cpp: In function ‘void iterateMatchesFullSimd()’:
lambda.cpp:254:9: warning: typedef ‘using TBlastRecord = int’ locally defined
but not used [-Wunused-local-typedefs]
  254 |   using TBlastRecord = int;
      |         ^~~~~~~~~~~~
lambda.cpp: At global scope:
lambda.cpp:258:1: error: type variant with ‘TYPE_ALIAS_SET_KNOWN_P’
  258 | }
      | ^
 <vector_type 0x7ffff755ba80
    type <integer_type 0x7ffff7415498 short int public type_6 HI
        size <integer_cst 0x7ffff7418078 constant 16>
        unit-size <integer_cst 0x7ffff7418090 constant 2>
        align:16 warn_if_not_align:0 symtab:0 alias-set 2 canonical-type
0x7ffff7415498 precision:16 min <integer_cst 0x7ffff7418018 -32768> max
<integer_cst 0x7ffff7418048 32767>>
    sizes-gimplified type_6 HI size <integer_cst 0x7ffff7418078 16> unit-size
<integer_cst 0x7ffff7418090 2>
    align:16 warn_if_not_align:0 symtab:0 alias-set 2 canonical-type
0x7ffff755ba80 nunits:1>
 <vector_type 0x7ffff75f0930
    type <integer_type 0x7ffff7415498 short int public type_6 HI
        size <integer_cst 0x7ffff7418078 constant 16>
        unit-size <integer_cst 0x7ffff7418090 constant 2>
        align:16 warn_if_not_align:0 symtab:0 alias-set 2 canonical-type
0x7ffff7415498 precision:16 min <integer_cst 0x7ffff7418018 -32768> max
<integer_cst 0x7ffff7418048 32767>>
    sizes-gimplified type_6 HI size <integer_cst 0x7ffff7418078 16> unit-size
<integer_cst 0x7ffff7418090 2>
    align:16 warn_if_not_align:0 symtab:0 alias-set 2 canonical-type
0x7ffff755ba80 nunits:1>
during IPA pass: *free_lang_data
lambda.cpp:258:1: internal compiler error: ‘verify_type’ failed
0x139f4d0 verify_type(tree_node const*)
        /home/marxin/Programming/gcc/gcc/tree.c:14906
0x13a2407 free_lang_data
        /home/marxin/Programming/gcc/gcc/tree.c:6436
0x13a2407 execute
        /home/marxin/Programming/gcc/gcc/tree.c:6481
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

Reply via email to