https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90760
--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Fri Aug 30 12:46:13 2019 New Revision: 275159 URL: https://gcc.gnu.org/viewcvs?rev=275159&root=gcc&view=rev Log: Backported from mainline 2019-06-12 Jakub Jelinek <ja...@redhat.com> PR c/90760 * symtab.c (symtab_node::set_section): Allow being called on aliases as long as they aren't analyzed yet. * gcc.dg/pr90760.c: New test. Added: branches/gcc-7-branch/gcc/testsuite/gcc.dg/pr90760.c Modified: branches/gcc-7-branch/gcc/ChangeLog branches/gcc-7-branch/gcc/symtab.c branches/gcc-7-branch/gcc/testsuite/ChangeLog