https://gcc.gnu.org/bugzilla/show_bug.cgi?id=128503
Bug ID: 128503
Summary: internal compiler error: in
convert_to_anonymous_field, at c/c-typeck.cc
Product: gcc
Version: 17.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: 0599jiangyc at gmail dot com
Target Milestone: ---
The following code:
```c
struct D { struct b; };
struct E { struct D; };
void f6 (struct b *p);
void f7 (struct E *p) { f6 (p); }
```
Resulted in this output:
```
<source>:1:19: error: unnamed field has incomplete type
<source>:4:17: internal compiler error: in convert_to_anonymous_field, at
c/c-typeck.cc:8117
```
Trunk reproducer (`-fplan9-extensions`): https://godbolt.org/z/x76WeMP56