re PR fortran/20848 (PARAMETER and SAVE attribute conflict)

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.

From-SVN: r104005
This commit is contained in:
Thomas Koenig 2005-09-07 21:08:24 +00:00 committed by Thomas Koenig
parent 0c924d5c66
commit 2a0abeaf55
4 changed files with 17 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2005-09-07 Thomas Koenig <Thomas.Koenig@online.de>
PR fortran/20848
* symbol.c(check_conflict): Add conflict for parameter/save,
2005-09-06 Richard Sandiford <richard@codesourcery.com>
PR fortran/19269

View File

@ -434,6 +434,7 @@ check_conflict (symbol_attribute * attr, const char * name, locus * where)
conf2 (target);
conf2 (dummy);
conf2 (in_common);
conf2 (save);
break;
default:

View File

@ -1,3 +1,8 @@
2005-09-07 Thomas Koenig <Thomas.Koenig@online.de>
PR fortran/20848
* gfortran.dg/parameter+save.f90: New test case.
2005-09-06 Richard Sandiford <richard@codesourcery.com>
PR fortran/19269

View File

@ -0,0 +1,6 @@
! { dg-do compile }
! PR 20848 - parameter and save should conflict.
integer, parameter, save :: x=0 ! { dg-error "conflicts" }
integer, save :: y
parameter (y=42) ! { dg-error "conflicts" }
end