This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/32673] Wrongly allowed: Statement function with subobject of constant
- From: "pault at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Jul 2007 14:51:13 -0000
- Subject: [Bug fortran/32673] Wrongly allowed: Statement function with subobject of constant
- References: <bug-32673-13404@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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