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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
           Keywords|                            |ice-on-valid-code
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2024-06-13
            Summary|__has_unique_object_represe |[13/14/15 Regression]
                   |ntation ICE with array of   |__has_unique_object_represe
                   |uninstantiated type of      |ntation ICE with array of
                   |unknown bound               |uninstantiated type of
                   |                            |unknown bound
      Known to work|                            |12.3.0
      Known to fail|                            |13.1.0
   Target Milestone|---                         |13.4

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed. full backtrace:
```
t.cc:6:59: internal compiler error: Segmentation fault
    6 |     auto t = (__has_unique_object_representations(Foo<0>[]));
      |                                                           ^
0x137448f crash_signal
        /home/apinski/src/upstream-gcc-new/gcc/gcc/toplev.cc:319
0xce7df0 contains_struct_check(tree_node const*, tree_node_structure_enum, char
const*, int, char const*)
        /home/apinski/src/upstream-gcc-new/gcc/gcc/tree.h:4065
0xce7df0 wi::extended_tree<128>::extended_tree(tree_node const*)
        /home/apinski/src/upstream-gcc-new/gcc/gcc/tree.h:6477
0xce7df0 generic_wide_int<wi::extended_tree<128> >::generic_wide_int<tree_node
const*>(tree_node const* const&)
        /home/apinski/src/upstream-gcc-new/gcc/gcc/wide-int.h:847
0xce7df0 wi::to_offset(tree_node const*)
        /home/apinski/src/upstream-gcc-new/gcc/gcc/tree.h:6429
0xce7df0 record_has_unique_obj_representations
        /home/apinski/src/upstream-gcc-new/gcc/gcc/cp/tree.cc:4832
0xce77bb type_has_unique_obj_representations(tree_node const*)
        /home/apinski/src/upstream-gcc-new/gcc/gcc/cp/tree.cc:4747
0xcc782e finish_trait_expr(unsigned int, cp_trait_kind, tree_node*, tree_node*)
        /home/apinski/src/upstream-gcc-new/gcc/gcc/cp/semantics.cc:13074
0xc2db09 cp_parser_trait
        /home/apinski/src/upstream-gcc-new/gcc/gcc/cp/parser.cc:11314
0xc1de71 cp_parser_postfix_expression
        /home/apinski/src/upstream-gcc-new/gcc/gcc/cp/parser.cc:7954
0xbf4c10 cp_parser_binary_expression
        /home/apinski/src/upstream-gcc-new/gcc/gcc/cp/parser.cc:10413
0xbf59f4 cp_parser_assignment_expression
        /home/apinski/src/upstream-gcc-new/gcc/gcc/cp/parser.cc:10757
0xbf5fa4 cp_parser_expression
        /home/apinski/src/upstream-gcc-new/gcc/gcc/cp/parser.cc:10924
0xc08ebd cp_parser_primary_expression
        /home/apinski/src/upstream-gcc-new/gcc/gcc/cp/parser.cc:5945
0xc1de71 cp_parser_postfix_expression
        /home/apinski/src/upstream-gcc-new/gcc/gcc/cp/parser.cc:7954
0xbf4c10 cp_parser_binary_expression
        /home/apinski/src/upstream-gcc-new/gcc/gcc/cp/parser.cc:10413
0xbf59f4 cp_parser_assignment_expression
        /home/apinski/src/upstream-gcc-new/gcc/gcc/cp/parser.cc:10757
0xbf7b8e cp_parser_constant_expression
        /home/apinski/src/upstream-gcc-new/gcc/gcc/cp/parser.cc:11047
0xbf97c6 cp_parser_initializer_clause
        /home/apinski/src/upstream-gcc-new/gcc/gcc/cp/parser.cc:26369
0xbfcfd4 cp_parser_initializer
        /home/apinski/src/upstream-gcc-new/gcc/gcc/cp/parser.cc:26308
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

```

Reply via email to