[Bug fortran/30681] "obsolescent" vs. "obsolete"
kargl at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Mon Feb 5 16:25:00 GMT 2007
------- Comment #2 from kargl at gcc dot gnu dot org 2007-02-05 16:25 -------
(In reply to comment #1)
> Compiling the code above with
>
> gfortran -std=f2003
>
> gives
>
> In file xarithmetic_if.f90:5
>
> if (i) 10,20,30
> 1
> Error: Obsolete: arithmetic IF statement at (1)
>
> which is incorrect, because the arithmetic IF is part of standard Fortran 2003
> and 95.
>
gfortran is correct. See section B.2 of Fortran 2003. I don't have
Fortran 95 handy, but I suspect that gfortran is correct for F95
too.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30681
More information about the Gcc-bugs
mailing list