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

            Bug ID: 120338
           Summary: internal compiler error: in expand_or_defer_fn_1, at
                    cp/semantics.cc:5479 with main and delete since
                    version 15.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>
int main() = delete;
int main(){
return 0;
}

```

Stack dump:

```
<source>:5:1: internal compiler error: in expand_or_defer_fn_1, at
cp/semantics.cc:5479
    5 | }
      | ^
0x2944c55 diagnostic_context::diagnostic_impl(rich_location*,
diagnostic_metadata const*, diagnostic_option_id, char const*, __va_list_tag
(*) [1], diagnostic_t)
        ???:0
0x29629c6 internal_error(char const*, ...)
        ???:0
0xad8aaa fancy_abort(char const*, int, char const*)
        ???:0
0xd8027e expand_or_defer_fn(tree_node*)
        ???:0
0xcfcc93 c_parse_file()
        ???:0
0xe618c9 c_common_parse_file()
        ???:0
```

To quickly reproduce:

https://godbolt.org/z/9n69cYzx4

Reply via email to