public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/35203]  New: OPTIONAL, VALUE actual argument cannot be an INTEGER 0
@ 2008-02-14 23:05 toon at moene dot indiv dot nluug dot nl
  2008-02-14 23:47 ` [Bug fortran/35203] " burnus at gcc dot gnu dot org
                   ` (10 more replies)
  0 siblings, 11 replies; 14+ messages in thread
From: toon at moene dot indiv dot nluug dot nl @ 2008-02-14 23:05 UTC (permalink / raw)
  To: gcc-bugs

Run this program:

      INTERFACE
      SUBROUTINE AAP(I)
      INTEGER, OPTIONAL, VALUE :: I
      END SUBROUTINE
      END INTERFACE
      CALL AAP(0)
      END
      SUBROUTINE AAP(N)
      INTEGER, OPTIONAL, VALUE :: N
      IF (PRESENT(N)) THEN
         PRINT*,'PRESENT, WITH VALUE:',N
      ELSE
         PRINT*,'NOT PRESENT'
      ENDIF
      END

and get:

$ ./a.out
 NOT PRESENT
$

which should come to no surprise, if one glazes his/her eyes over
trans_expr.c:gfc_conv_missing_dummy.


-- 
           Summary: OPTIONAL, VALUE actual argument cannot be an INTEGER 0
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: toon at moene dot indiv dot nluug dot nl


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


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

end of thread, other threads:[~2013-03-29 22:35 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-35203-4@http.gcc.gnu.org/bugzilla/>
2013-03-21 18:07 ` [Bug fortran/35203] OPTIONAL, VALUE actual argument cannot be an INTEGER 0 burnus at gcc dot gnu.org
2013-03-29 22:32 ` burnus at gcc dot gnu.org
2013-03-29 22:35 ` burnus at gcc dot gnu.org
2008-02-14 23:05 [Bug fortran/35203] New: " toon at moene dot indiv dot nluug dot nl
2008-02-14 23:47 ` [Bug fortran/35203] " burnus at gcc dot gnu dot org
2008-02-15  0:03 ` burnus at gcc dot gnu dot org
2008-02-15  1:04 ` toon at moene dot indiv dot nluug dot nl
2008-02-15  1:07 ` toon at moene dot indiv dot nluug dot nl
2008-02-15  6:12 ` jvdelisle at gcc dot gnu dot org
2008-02-15  6:36 ` jvdelisle at gcc dot gnu dot org
2008-02-15  7:18 ` burnus at gcc dot gnu dot org
2008-02-15 18:15 ` toon at moene dot indiv dot nluug dot nl
2008-02-15 20:05 ` burnus at gcc dot gnu dot org
2008-02-18  8:32 ` toon at moene dot indiv dot nluug dot nl
2008-03-26 21:10 ` tobi 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).