[PATCH] PR fortran/77414 -- catch re-declaration of subroutines

Steve Kargl sgk@troutmask.apl.washington.edu
Sun Mar 18 15:25:00 GMT 2018


The attached patch fixes an ICE by reporting an error
for the re-declaration of a subroutine by trying to 
include itself as an internal subprogram.

Regression tested on x86_64-*-freebsd and i568-*-freebsd.
OK to commit?

2018-03-17  Steven G. Kargl  <kargl@gcc.gnu.org>

	PR fortran/77414
	* decl.c (get_proc_name):  Check for a subroutine re-defined in
	the contain portion of a subroutine.  Change language of existing
	error message to better describe the issue. While here fix whitespace
	issues.

2018-03-17  Steven G. Kargl  <kargl@gcc.gnu.org>

	PR fortran/77414
	* gfortran.dg/pr77414.f90: New test.
	* gfortran.dg/internal_references_1.f90: Adjust error message.

-- 
Steve
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr77414.diff
Type: text/x-diff
Size: 3834 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20180318/c91af349/attachment.bin>


More information about the Gcc-patches mailing list