This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/51991] Wrong error message with variables named "SAVE*"
- From: "dominiq at lps dot ens.fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 25 Jan 2012 11:09:19 +0000
- Subject: [Bug fortran/51991] Wrong error message with variables named "SAVE*"
- Auto-submitted: auto-generated
- References: <bug-51991-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51991
Dominique d'Humieres <dominiq at lps dot ens.fr> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2012-01-25
Ever Confirmed|0 |1
--- Comment #2 from Dominique d'Humieres <dominiq at lps dot ens.fr> 2012-01-25 11:09:19 UTC ---
It looks like the test should be
module mymod
type :: mytyp
integer :: i
end type mytyp
contains
subroutine mysub
implicit none
type(mytyp) :: a
integer :: i,j
i = a%i
savej = a%j
end subroutine mysub
end module mymod
and for the variant above I confirm that the error is
pr51991_db.f90:11.9:
savej = a%j
1
Error: Syntax error in SAVE statement at (1)
for gfortran 4.4.6, 4.5.3, 4.6.3, and 4.7.0 (trunk r183455).