[Bug fortran/32673] Wrongly allowed: Statement function with subobject of constant
pault at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sun Jul 8 14:51:00 GMT 2007
------- Comment #1 from pault at gcc dot gnu dot org 2007-07-08 14:51 -------
(In reply to comment #0)
> Even with -std=f95 -pedantic no error is given for the following program. NAG
> f95 gives:
Both Lahey and g95 are happy with it.
> "C421 (R424) The length specified for a character statement function or for a
> statement function dummy argument of type character shall be an initialization
> expression."
That is the case here (LEN = 4).
I do not think that this is a bug.
Paul
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32673
More information about the Gcc-bugs
mailing list