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/32673] Wrongly allowed: Statement function with subobject of constant



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


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