https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51991

--- Comment #17 from kargl at gcc dot gnu.org ---
(In reply to Dominique d'Humieres from comment #15)
> Compiling the test in comment 10 gives now
> 
> pr51991_2.f90:3:7:
> 
>     3 |   save1 = something wrong
>       |       1
> Error: Invalid character in name at (1)
> pr51991_2.f90:8:6:
> 
>     8 |   data1 = something wrong
>       |      1
> Error: Syntax error in DATA statement at (1)
> 
> The first error before revision r272556 was
> 
> pr51991_2.f90:3:6:
> 
>     3 |   save1 = something wrong
>       |      1
> Error: Syntax error in SAVE statement at (1)
> 
> It seems there is a similar problem with DATA (and may be others) and the
> location of (1) is not set to the right place.

I just realized that your code isn't even close to conforming.

subroutine sav
  integer :: save1
  save1 = something wrong
end subroutine sav

What part of "something wrong" is a valid RHS expression????

Please don't waste my time with silly code.

For the record, this compiles just fine

subroutine sav
  integer :: save1
  save1 = 1
end subroutine sav

Reply via email to