8sa1-gcc/gcc/testsuite/gfortran.dg/pr95611.f90
Harald Anlauf 393ccb7256 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>
2020-06-11 21:07:49 +02:00

8 lines
195 B
Fortran

! { dg-do compile }
! PR fortran/95611 - ICE in access_attr_decl, at fortran/decl.c:9075
module m
public operator (.a.)
public operator (.a.) ! { dg-error "has already been specified" }
end