public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/33849]  New: Fix misleading error message "GENERIC non-INTRINSIC procedure not allowed as an actual argument"
@ 2007-10-21 10:41 burnus at gcc dot gnu dot org
  2007-10-21 22:56 ` [Bug fortran/33849] " jvdelisle at gcc dot gnu dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 11+ messages in thread
From: burnus at gcc dot gnu dot org @ 2007-10-21 10:41 UTC (permalink / raw)
  To: gcc-bugs

The following error message is misleading:

"Error: GENERIC non-INTRINSIC procedure '%s' is not allowed as an actual
argument"

The problem is that any GENERIC procedure - intrinsic or not - is not allowed
as actual argument. (For "a dummy procedure[...], the associated actual
argument shall be the specific name".)
However, this problem never occurs for intrinsic procedures as all intrinsic
procedures which are allowed as actual argument (cf. 13.6) are also specific
functions. (And then applies: "If the specific name is also a generic name,
only the specific procedure is associated with the dummy argument.")

See also PR 33162 and PR 33847.

>From the Fortran 2003 standard:

"12.4.1.3 Actual arguments associated with dummy procedure entities"
[...]
"If a dummy argument is a dummy procedure without the POINTER attribute, the
associated actual argument shall be the specific name of an external, module,
dummy, or intrinsic procedure, an associated procedure pointer, or a reference
to a function that returns an associated procedure pointer. The only intrinsic
procedures permitted are those listed in 13.6 and not marked with a bullet (*).
If the specific name is also a generic name, only the specific procedure is
associated with the dummy argument."


-- 
           Summary: Fix misleading error message "GENERIC non-INTRINSIC
                    procedure not allowed as an actual argument"
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: diagnostic
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: burnus at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33849


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2007-10-24  3:39 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-21 10:41 [Bug fortran/33849] New: Fix misleading error message "GENERIC non-INTRINSIC procedure not allowed as an actual argument" burnus at gcc dot gnu dot org
2007-10-21 22:56 ` [Bug fortran/33849] " jvdelisle at gcc dot gnu dot org
2007-10-22  6:22 ` burnus at gcc dot gnu dot org
2007-10-22 14:25   ` Jerry DeLisle
2007-10-22 14:26 ` jvdelisle at verizon dot net
2007-10-22 23:08 ` jvdelisle at gcc dot gnu dot org
2007-10-22 23:09 ` jvdelisle at gcc dot gnu dot org
2007-10-23 17:42 ` dominiq at lps dot ens dot fr
2007-10-23 21:57 ` burnus at gcc dot gnu dot org
2007-10-24  3:29 ` jvdelisle at gcc dot gnu dot org
2007-10-24  3:39 ` jvdelisle at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).