[patch, fortran] Fix PR 20848, parameter and save conflict

Tobias Schlüter tobias.schlueter@physik.uni-muenchen.de
Wed Sep 7 20:42:00 GMT 2005


Thomas Koenig wrote:
> Regression-tested on mainline.  OK for checkin (and also for 4.0
> once I regression-test it there)?
> 
> 	Thomas
> 
> :ADDPATCH fortran:
> 
> 2005-09-07  Thomas Koenig  <Thomas.Koenig@online.de>
> 
> 	PR fortran/20848
> 	* symbol.c(check_conflict):  Add conflict for parameter/save,
> 
> 2005-09-07  Thomas Koenig  <Thomas.Koenig@online.de>
> 
> 	PR fortran/20848
> 	* gfortran.dg/parameter+save.f90:  New test case.

This patch is IMO obviously correct.  Does it catch the bug in opposite order:
 INTEGER, SAVE :: i
 PARAMETER (i=5)
 END
?

Otherwise that should also be fixed before closing the PR.

- Tobi



More information about the Gcc-patches mailing list