This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/23677] -fno-automatic does not accept legal save statements
- From: "dir at lanl dot gov" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Sep 2005 19:31:43 -0000
- Subject: [Bug fortran/23677] -fno-automatic does not accept legal save statements
- References: <20050901130843.23677.federico.carminati@cern.ch>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From dir at lanl dot gov 2005-09-06 19:31 -------
I have the same problem (g77 does not complain) -
[dranta:~/tests/gfortran-D] dir% g77 -c -fno-automatic save.f
[dranta:~/tests/gfortran-D] dir% gfortran -c -fno-automatic save.f
In file save.f:2
save lastcol
1
Error: Duplicate SAVE attribute specified at (1)
[dranta:~/tests/gfortran-D] dir% cat save.f
subroutine gdpstc(ifxn,xa,ya)
save lastcol
return
end
[dranta:~/tests/gfortran-D] dir% gfortran --v
Using built-in specs.
Target: powerpc-apple-darwin7.9.0
Configured with: ./configure --prefix=/Users/dir/gfortran --enable-languages=c,f95
Thread model: posix
gcc version 4.1.0 20050906 (experimental)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23677