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

            Bug ID: 120346
           Summary: internal compiler error: tree check: expected
                    target_expr, have error_mark in convert_like_internal,
                    at cp/call.cc:9037 since 14.1
           Product: gcc
           Version: 16.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: mario.rodriguezb1 at um dot es
  Target Milestone: ---

ICE in:

```
#include <iostream>
#include <unordered_set>
int main() {
    std::unordered_set<int[]> set1{{1, 2, 3, 4, 5}};
}
```

```
<source>:5:51: internal compiler error: tree check: expected target_expr, have
error_mark in convert_like_internal, at cp/call.cc:9037
0x2945025 diagnostic_context::diagnostic_impl(rich_location*,
diagnostic_metadata const*, diagnostic_option_id, char const*, __va_list_tag
(*) [1], diagnostic_t)
        ???:0
0x2962d96 internal_error(char const*, ...)
        ???:0
0x9e1042 tree_check_failed(tree_node const*, char const*, int, char const*,
...)
        ???:0
0xaf9923 build_new_method_call(tree_node*, tree_node*, vec<tree_node*, va_gc,
vl_embed>**, tree_node*, int, tree_node**, int)
        ???:0
0xafac7d build_special_member_call(tree_node*, tree_node*, vec<tree_node*,
va_gc, vl_embed>**, tree_node*, int, int)
        ???:0
0xc079ca build_aggr_init(tree_node*, tree_node*, int, int)
        ???:0
0xbd268e cp_finish_decl(tree_node*, tree_node*, bool, tree_node*, int,
cp_decomp*)
        ???:0
0xcfccb3 c_parse_file()
        ???:0
0xe618e9 c_common_parse_file()
        ???:0
```

To quickly reproduce:

https://godbolt.org/z/edWbj8GT7

Reply via email to