[fortran,patch] Extend symbol.c's check_conflict (PR29657)
Tobias Burnus
burnus@net-b.de
Sun Nov 12 05:38:00 GMT 2006
:ADDPATCH fortran:
This patch adds the following conflicts:
* FUNCTION name conflicts with SAVE
* SUBROUTINE name conflicts with DIMENSION
* PROGRAM and MODULE names conflicts with DIMENSION
Those should be obvious. I couldn't find a good reference, though.
* DUMMY ARGUMENTS conflict with ENTRY
This is explicitly forbidden in Fortran 2003
C1255
* DUMMY ARGUMENTS conflict with INTRINSIC
It it not stated as allowed - contrary to EXTERNAL where it is
explicitly allowed (see 12.3.2.2)
Test case tested with NAG f95, ifort, sunf95, which find all those
conflicts.
Bootstrapped and regtested on x86_64-unknown-linux-gnu.
Tobias
fortran/
2006-11-11 Tobias Burnus <burnus@net-b.de>
* symbol.c (check_conflict): Add further conflicts.
testsuite/
2006-11-11 Tobias Burnus <burnus@net-b.de>
* gfortran.dg/conflicts.f90: Add.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: conflicts.diff
Type: text/x-patch
Size: 2733 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20061112/df331ff7/attachment.bin>
More information about the Fortran
mailing list