This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/51991] Wrong error message with variables named "SAVE*"


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).


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]