https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90760
Martin Sebor <msebor at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2019-06-05 CC| |msebor at gcc dot gnu.org Known to work| |4.9.4 Summary|ICE in set_section, at |[8/9/10 Regression] ICE on |symtab.c:1573 |attributes section and | |alias in set_section, at | |symtab.c:1573 Ever confirmed|0 |1 Known to fail| |10.0, 5.1.0, 6.4.0, 7.3.0, | |8.2.0, 9.1.0 --- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> --- Confirmed. Bisection points to r216361 committed into GCC 5.0.0. GCC 4.9 rejects the code with an error. r216361 | trippels | 2014-10-17 01:10:07 -0400 (Fri, 17 Oct 2014) | 34 lines Fix pr61848, linux kernel miscompile This patch cures the linux kernel boot failure when compiled using trunk gcc. At its heart, the problem is caused by merge_decls merging from the old decl to the new decl, then copying back to the old decl and discarding the new. When Jan moved some fields to the symtab, "copying back to the old decl" was lost for those fields. Really, it would be best if merge_decls was rewritten to merge everything to the kept decl, but here I'm just doing that for fields accessed via decl_with_vis.symtab_node.