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:
parent
0c924d5c66
commit
2a0abeaf55
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue