https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88585
Bug ID: 88585 Summary: [9 Regression] ICE in fld_incomplete_type_of, at tree.c:5295 Product: gcc Version: 9.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: ipa Assignee: unassigned at gcc dot gnu.org Reporter: asolokha at gmx dot com CC: marxin at gcc dot gnu.org Target Milestone: --- gcc-9.0.0-alpha20181223 snapshot (r267388) ICEs when compiling the following snippet extracted from gcc/testsuite/gcc.dg/c11-atomic-4.c w/ -flto -fpack-struct: struct S { int x; }; int fn2 (_Atomic struct S *p) { int e = 1 || p->x; return p->x + e; /* { dg-warning "accessing a member .x. of an atomic structure" } */ } void fn4 (_Atomic struct S *p, int x) { p->x = x; /* { dg-warning "accessing a member .x. of an atomic structure" } */ } % gcc-9.0.0-alpha20181223 -flto -fpack-struct -w -c gcpt737x.c during IPA pass: *free_lang_data gcpt737x.c:14:1: internal compiler error: in fld_incomplete_type_of, at tree.c:5295 14 | } | ^ 0x6eb620 fld_incomplete_type_of /var/tmp/portage/sys-devel/gcc-9.0.0_alpha20181223/work/gcc-9-20181223/gcc/tree.c:5295 0xfc1115 free_lang_data_in_type /var/tmp/portage/sys-devel/gcc-9.0.0_alpha20181223/work/gcc-9-20181223/gcc/tree.c:5453 0xfc2d03 free_lang_data_in_cgraph /var/tmp/portage/sys-devel/gcc-9.0.0_alpha20181223/work/gcc-9-20181223/gcc/tree.c:6178 0xfc2d03 free_lang_data /var/tmp/portage/sys-devel/gcc-9.0.0_alpha20181223/work/gcc-9-20181223/gcc/tree.c:6210 0xfc2d03 execute /var/tmp/portage/sys-devel/gcc-9.0.0_alpha20181223/work/gcc-9-20181223/gcc/tree.c:6282