public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/36275]  New: Binding label can be any scalar char initialisation expression
@ 2008-05-20  9:59 fxcoudert at gcc dot gnu dot org
  2008-05-20 10:10 ` [Bug fortran/36275] " fxcoudert at gcc dot gnu dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2008-05-20  9:59 UTC (permalink / raw)
  To: gcc-bugs

The following is legal:

function x(z) bind(C,name='x'//'f')
  integer :: z, x
end function x

as the Standard (F2003) only says:

R509: language-binding-spec is BIND (C [, NAME =
scalar-char-initialization-expr ])
C540: The scalar-char-initialization-expr shall be of default character kind.

So, any scalar char initialisation expression of default character kind is fair
game. This will require removing a good part of the code in gfc_match_bind_c(),
and call more generic routines instead, so it's not really bad news (and it
also requires remove the gfc_match_name_C function).


-- 
           Summary: Binding label can be any scalar char initialisation
                    expression
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Keywords: rejects-valid
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: fxcoudert at gcc dot gnu dot org


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


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

end of thread, other threads:[~2009-12-10 19:11 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-20  9:59 [Bug fortran/36275] New: Binding label can be any scalar char initialisation expression fxcoudert at gcc dot gnu dot org
2008-05-20 10:10 ` [Bug fortran/36275] " fxcoudert at gcc dot gnu dot org
2008-05-20 16:52 ` burnus at gcc dot gnu dot org
2008-05-28 21:59 ` janus at gcc dot gnu dot org
2008-06-04 21:06 ` janus at gcc dot gnu dot org
2008-06-04 21:11 ` janus at gcc dot gnu dot org
2008-09-03 21:45 ` mikael dot morin at tele2 dot fr
2009-05-24 20:08 ` fxcoudert at gcc dot gnu dot org
2009-05-24 20:08 ` fxcoudert at gcc dot gnu dot org
2009-12-10 19:11 ` dfranke 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).