Commit 2a0abeaf by Thomas Koenig Committed by Thomas Koenig

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
parent 0c924d5c
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> 2005-09-06 Richard Sandiford <richard@codesourcery.com>
PR fortran/19269 PR fortran/19269
......
...@@ -434,6 +434,7 @@ check_conflict (symbol_attribute * attr, const char * name, locus * where) ...@@ -434,6 +434,7 @@ check_conflict (symbol_attribute * attr, const char * name, locus * where)
conf2 (target); conf2 (target);
conf2 (dummy); conf2 (dummy);
conf2 (in_common); conf2 (in_common);
conf2 (save);
break; break;
default: default:
......
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> 2005-09-06 Richard Sandiford <richard@codesourcery.com>
PR fortran/19269 PR fortran/19269
! { 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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment