public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/34133]  New: Bind(c): Accepts PROGRAM internal bind(c) procedure
@ 2007-11-17 12:57 burnus at gcc dot gnu dot org
  2007-11-17 18:19 ` [Bug fortran/34133] " burnus at gcc dot gnu dot org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: burnus at gcc dot gnu dot org @ 2007-11-17 12:57 UTC (permalink / raw)
  To: gcc-bugs

C1237 (R1225) A proc-language-binding-spec shall not be specified for an
internal procedure.

However, gfortran accepts the following:

subroutine foo()
contains
  subroutine bar() bind (c)
  end subroutine bar
end subroutine foo

program main
  use iso_c_binding
  implicit none
contains
  subroutine test(c) bind(c)
    character(len=1,kind=c_char) :: c
  end subroutine test
end program main


-- 
           Summary: Bind(c): Accepts PROGRAM internal bind(c) procedure
           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
OtherBugsDependingO 32630
             nThis:


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


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

end of thread, other threads:[~2007-11-30 16:05 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-17 12:57 [Bug fortran/34133] New: Bind(c): Accepts PROGRAM internal bind(c) procedure burnus at gcc dot gnu dot org
2007-11-17 18:19 ` [Bug fortran/34133] " burnus at gcc dot gnu dot org
2007-11-17 18:21 ` burnus at gcc dot gnu dot org
2007-11-19 18:13 ` crickett at lanl dot gov
2007-11-19 21:18 ` [Bug fortran/34133] Bind(c,name="") should be rejected for dummies; F2008: allow bind(c) for internal procs burnus at gcc dot gnu dot org
2007-11-19 21:27 ` burnus at gcc dot gnu dot org
2007-11-20  5:04 ` patchapp at dberlin dot org
2007-11-20 10:55 ` burnus at gcc dot gnu dot org
2007-11-20 14:01 ` patchapp at dberlin dot org
2007-11-30 12:17 ` burnus at gcc dot gnu dot org
2007-11-30 16:05 ` 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).