public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/35152]  New: Implicit procedure with keyword=argument is accepted
@ 2008-02-10  8:36 burnus at gcc dot gnu dot org
  2008-02-10 20:38 ` [Bug fortran/35152] " dfranke at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: burnus at gcc dot gnu dot org @ 2008-02-10  8:36 UTC (permalink / raw)
  To: gcc-bugs

external bar
call bar(a=5)
end

The "a=" is invalid as there is no explicit interface.

"12.4 Procedure reference"
"R1220 actual-arg-spec is [ keyword = ] actual-arg"
"C1225 (R1220) The keyword = shall not appear if the interface of the procedure
is implicit in the scoping unit."

Found at:
http://groups.google.com/group/comp.lang.fortran/browse_thread/thread/543563d67446fbea/

Other compilers show:

Error: Procedure with a keyword argument at (1) does not have an explicit
interface
Error: Keyword arguments are invalid without an explicit interface.
Error: Keyword argument requires an explicit interface
Error: An actual argument keyword is being used when an explicit interface is
not known.


-- 
           Summary: Implicit procedure with keyword=argument is accepted
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: accepts-invalid
          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=35152


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

end of thread, other threads:[~2008-03-20 12:17 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-10  8:36 [Bug fortran/35152] New: Implicit procedure with keyword=argument is accepted burnus at gcc dot gnu dot org
2008-02-10 20:38 ` [Bug fortran/35152] " dfranke at gcc dot gnu dot org
2008-03-16 12:52 ` dfranke at gcc dot gnu dot org
2008-03-19 19:15 ` dfranke at gcc dot gnu dot org
2008-03-19 19:16 ` dfranke at gcc dot gnu dot org
2008-03-20 11:24 ` dominiq at lps dot ens dot fr
2008-03-20 12:15 ` dfranke at gcc dot gnu dot org
2008-03-20 12:17 ` burnus 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).