This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/28548] [4.2 Regression]: Optional argument failed
- From: "paulthomas2 at wanadoo dot fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Aug 2006 12:02:15 -0000
- Subject: [Bug fortran/28548] [4.2 Regression]: Optional argument failed
- References: <bug-28548-682@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from paulthomas2 at wanadoo dot fr 2006-08-02 12:02 -------
Subject: Re: [4.2 Regression]: Optional argument failed
I'll take a look at this as soon as I get home (friday). There is a PR out on
PRESENT that I noticed before leaving. I'll try to gather together the
problems and sort them out in one fell swoop.
Best regards
Paul
> Message du 31/07/06 02:23
> De : "kargl at gcc dot gnu dot org"
> A : pault@gcc.gnu.org
> Copie Ã? :
> Objet : [Bug fortran/28548] [4.2 Regression]: Optional argument failed
>
>
>
> ------- Comment #3 from kargl at gcc dot gnu dot org 2006-07-31 00:23 -------
> Andrew, I think it is a bug. The language in section 12.4.1.5 is somewhat
> convoluted and the description of PRESENT() suggest that PRESENT is special.
>
> From 12.4.1.5:
>
> An optional dummy argument that is not present is subject to the
> following restrictions:
>
> (3) It shall not be supplied as an actual argument corresponding to
> a nonoptional dummy argument other than as the argument of the
> PRESENT intrinsic function.
>
> (5) If it is an array, it shall not be supplied as an actual argument
> to an elemental procedure unless an array of the same rank is
> supplied as an actual argument corresponding to a nonoptional dummy
> argument of that elemental procedure.
>
>
> 13.14.82 PRESENT (A)
>
> Description. Determine whether an optional argument is present.
>
> Class. Inquiry function.
>
> Argument. 'A' shall be the name of an optional dummy argument
> that is accessible in the subprogram in which the
> PRESENT function reference appears. It may be of any
> type and it may be a pointer. It may be scalar or array
> valued. It may be a dummy procedure. The dummy argument
> 'A' has no INTENT attribute.
>
>
> --
>
> kargl at gcc dot gnu dot org changed:
>
> What |Removed |Added
> ----------------------------------------------------------------------------
> CC| |kargl at gcc dot gnu dot org
>
>
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28548
>
> ------- You are receiving this mail because: -------
> You are on the CC list for the bug, or are watching someone who is.
>
>
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28548