]> git.ipfire.org Git - thirdparty/gcc.git/commit
PR fortran/95880 - ICE in gfc_add_type, at fortran/symbol.c:2030
authorHarald Anlauf <anlauf@gmx.de>
Sun, 28 Jun 2020 11:52:09 +0000 (13:52 +0200)
committerGiuliano Belinassi <giuliano.belinassi@usp.br>
Mon, 17 Aug 2020 16:15:12 +0000 (13:15 -0300)
commite23498aecb1a794e98d4f9f7272517663fb404f9
treedad41c505a133abf2d0adf39b1c0758d1b326c01
parent28142a16636c02b6aa0474e0f2844b5d916f9309
PR fortran/95880 - ICE in gfc_add_type, at fortran/symbol.c:2030

The fix for PR39695 did not properly distinguish between procedure names
and other symbols names in errors emitted for invalid code.  Fix that.

gcc/fortran/
PR fortran/95880
* symbol.c (gfc_add_type): If sym->ns->proc_name is set, use it,
otherwise fall back to sym->name.
gcc/fortran/symbol.c
gcc/testsuite/gfortran.dg/pr95880.f90 [new file with mode: 0644]