diff options
author | Harald Anlauf <anlauf@gmx.de> | 2020-06-11 21:03:48 +0200 |
---|---|---|
committer | Harald Anlauf <anlauf@gmx.de> | 2020-06-11 21:07:49 +0200 |
commit | 393ccb72566dc004b9ab5c3b8fb6fdca6c095812 (patch) | |
tree | a7b84fcc554681c6ab64073544843e58df52efc6 /gcc/fortran | |
parent | 7fd614ee818983274eb5e47cbb8ec68b20994963 (diff) | |
download | gcc-393ccb72566dc004b9ab5c3b8fb6fdca6c095812.zip gcc-393ccb72566dc004b9ab5c3b8fb6fdca6c095812.tar.gz gcc-393ccb72566dc004b9ab5c3b8fb6fdca6c095812.tar.bz2 |
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>
Diffstat (limited to 'gcc/fortran')
-rw-r--r-- | gcc/fortran/decl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/fortran/decl.c b/gcc/fortran/decl.c index 1c1626d..c8a9853 100644 --- a/gcc/fortran/decl.c +++ b/gcc/fortran/decl.c @@ -9073,7 +9073,7 @@ access_attr_decl (gfc_statement st) else { gfc_error ("Access specification of the .%s. operator at %C " - "has already been specified", sym->name); + "has already been specified", uop->name); goto done; } |