http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34004
janus at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |janus at gcc dot gnu.org
--- Comment #8 from janus at gcc dot gnu.org 2013-04-28 16:00:48 UTC ---
(In reply to comment #7)
> > The test in comment #0 is accepted and outputs:
> > $ ./comment_0
> > 1
> > 2
> > $
> >
> > Which seems sensible to me.
>
> Well the program in comment 0 is invalid in Fortran 2003 but valid in Fortran
> 2008 (cf. quotes in comment 0 and comment 5.)
>
> Thus, we should reject it with -std=f95/f2003 and accept it with -std=f2008
> and
> later. (Cf. PR 45521)
Since F08 allows it and the two interfaces in comment 0 are distinguishable by
"common sense", I would say it's not worth to implement any diagnostics for it.
How about counting this as a "bug in the F03 standard" and closing the PR as
invalid (as suggested by Mikael)?