PR fortran/95611 - ICE in access_attr_decl, at fortran/decl.c:9075
authorHarald Anlauf <anlauf@gmx.de>
Thu, 11 Jun 2020 19:03:48 +0000 (21:03 +0200)
committerHarald Anlauf <anlauf@gmx.de>
Thu, 11 Jun 2020 19:07:49 +0000 (21:07 +0200)
commit393ccb72566dc004b9ab5c3b8fb6fdca6c095812
treea7b84fcc554681c6ab64073544843e58df52efc6
parent7fd614ee818983274eb5e47cbb8ec68b20994963
PR fortran/95611 - ICE in access_attr_decl, at fortran/decl.c:9075

When reporting a duplicate access specification of an operator, refer to
the proper symbol.

2020-06-11  Harald Anlauf <anlauf@gmx.de>

gcc/fortran/
PR fortran/95611
* decl.c (access_attr_decl): Use correct symbol in error message.

Co-Authored-By: Steven G. Kargl <kargl@gcc.gnu.org>
gcc/fortran/decl.c
gcc/testsuite/gfortran.dg/pr95611.f90 [new file with mode: 0644]