https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121087
Bug ID: 121087
Summary: internal compiler error: Segmentation fault
initialize_vtbl_ptrs 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:
Program
```
struct foo{
foo(const this&) : array{ 0 } {};
};
```
Stack dump
```
<source>:2:33: internal compiler error: Segmentation fault
2 | foo(const this&) : array{ 0 } {};
| ^
0x2879ca5 diagnostic_context::diagnostic_impl(rich_location*,
diagnostic_metadata const*, diagnostic_option_id, char const*, __va_list_tag
(*) [1], diagnostic_t)
???:0
0x289b986 internal_error(char const*, ...)
???:0
0xc20905 initialize_vtbl_ptrs(tree_node*)
???:0
0xc2da3f emit_mem_initializers(tree_node*)
???:0
0xd20193 c_parse_file()
???:0
0xe8a449 c_common_parse_file()
???:0
```
To quickly reproduce:
https://godbolt.org/z/P3d87a65q