re PR fortran/20847 (common block object may not have save attribute)
authorPaul Thomas <pault@gcc.gnu.org>
Wed, 12 Oct 2005 20:05:04 +0000 (20:05 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Wed, 12 Oct 2005 20:05:04 +0000 (20:05 +0000)
commit96b95725509f2a63c2be09e9953a50d6f060cbea
treeabc1cad029a8771cdb8273bbb5c57a8dfdc1284f
parent4def9c5307aa70afe92896aa4e2e4f350df4ae74
re PR fortran/20847 (common block object may not have save attribute)

2005-10-12  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/20847
PR fortran/20856
* symbol.c (check_conflict): Prevent common variables and
function results from having the SAVE attribute,as required
by the standard.

2005-10-12  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/20847
gfortran.dg/save_common.f90: New test.

PR fortran/20856
gfortran.dg/save_result.f90: New test.

From-SVN: r105325
gcc/fortran/ChangeLog
gcc/fortran/symbol.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/save_common.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/save_result.f90 [new file with mode: 0644]