public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/35031]  New: ELEMENTAL procedure with BIND(C)
@ 2008-01-30 17:12 burnus at gcc dot gnu dot org
  2008-02-04 17:35 ` [Bug fortran/35031] " fxcoudert at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: burnus at gcc dot gnu dot org @ 2008-01-30 17:12 UTC (permalink / raw)
  To: gcc-bugs

ELEMENTAL conflicts with BIND(C).

However, the following is not rejected (diagnosed) by gfortran:

   elemental subroutine sub(x)
     integer, intent(in) :: x
     entry sub_c(x) bind(c)
   end subroutine sub

Actually, this is a loop hole in the Fortran 2003 standard, which will be
presumably fixed by an erratum. (It passed the J3 ballot, WG3 and ISO approval
are still needed.) See F03/0086:

ANSWER:

 No, it is not allowed. Constraint C1242 was intended to disallow
 the combination of elemental and BIND(C), but it inadvertently
 failed to cover the case shown in the above example.

EDITS

 Replace C1242 in subclause 12.5.2.1 with
 [280:6-7]
 "C1242 An ELEMENTAL procedure shall not have the BIND attribute.".


-- 
           Summary: ELEMENTAL procedure with BIND(C)
           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=35031


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

* [Bug fortran/35031] ELEMENTAL procedure with BIND(C)
  2008-01-30 17:12 [Bug fortran/35031] New: ELEMENTAL procedure with BIND(C) burnus at gcc dot gnu dot org
@ 2008-02-04 17:35 ` fxcoudert at gcc dot gnu dot org
  2008-06-02 16:07 ` burnus at gcc dot gnu dot org
  2010-05-09 13:34 ` dfranke at gcc dot gnu dot org
  2 siblings, 0 replies; 5+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2008-02-04 17:35 UTC (permalink / raw)
  To: gcc-bugs



-- 

fxcoudert at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2008-02-04 17:34:53
               date|                            |


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


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

* [Bug fortran/35031] ELEMENTAL procedure with BIND(C)
  2008-01-30 17:12 [Bug fortran/35031] New: ELEMENTAL procedure with BIND(C) burnus at gcc dot gnu dot org
  2008-02-04 17:35 ` [Bug fortran/35031] " fxcoudert at gcc dot gnu dot org
@ 2008-06-02 16:07 ` burnus at gcc dot gnu dot org
  2010-05-09 13:34 ` dfranke at gcc dot gnu dot org
  2 siblings, 0 replies; 5+ messages in thread
From: burnus at gcc dot gnu dot org @ 2008-06-02 16:07 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from burnus at gcc dot gnu dot org  2008-06-02 16:06 -------
Draft 2003 corrigendum 3: ftp://ftp.nag.co.uk/sc22wg5/N1701-N1750/N1727.pdf
(Not yet sent to ISO and thus also not ISO approved.)


-- 


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


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

* [Bug fortran/35031] ELEMENTAL procedure with BIND(C)
  2008-01-30 17:12 [Bug fortran/35031] New: ELEMENTAL procedure with BIND(C) burnus at gcc dot gnu dot org
  2008-02-04 17:35 ` [Bug fortran/35031] " fxcoudert at gcc dot gnu dot org
  2008-06-02 16:07 ` burnus at gcc dot gnu dot org
@ 2010-05-09 13:34 ` dfranke at gcc dot gnu dot org
  2 siblings, 0 replies; 5+ messages in thread
From: dfranke at gcc dot gnu dot org @ 2010-05-09 13:34 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from dfranke at gcc dot gnu dot org  2010-05-09 13:34 -------
(In reply to comment #1)
> Draft 2003 corrigendum 3: ftp://ftp.nag.co.uk/sc22wg5/N1701-N1750/N1727.pdf
> (Not yet sent to ISO and thus also not ISO approved.)

See ftp://ftp.nag.co.uk/sc22wg5/N1701-N1750/N1731.pdf


-- 


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


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

* [Bug fortran/35031] ELEMENTAL procedure with BIND(C)
       [not found] <bug-35031-4@http.gcc.gnu.org/bugzilla/>
@ 2014-07-09 22:38 ` fxcoudert at gcc dot gnu.org
  0 siblings, 0 replies; 5+ messages in thread
From: fxcoudert at gcc dot gnu.org @ 2014-07-09 22:38 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=35031

Francois-Xavier Coudert <fxcoudert at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fxcoudert at gcc dot gnu.org

--- Comment #3 from Francois-Xavier Coudert <fxcoudert at gcc dot gnu.org> ---
That code is now rejected (for a wrong reason), due to PR61765.


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

end of thread, other threads:[~2014-07-09 22:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-30 17:12 [Bug fortran/35031] New: ELEMENTAL procedure with BIND(C) burnus at gcc dot gnu dot org
2008-02-04 17:35 ` [Bug fortran/35031] " fxcoudert at gcc dot gnu dot org
2008-06-02 16:07 ` burnus at gcc dot gnu dot org
2010-05-09 13:34 ` dfranke at gcc dot gnu dot org
     [not found] <bug-35031-4@http.gcc.gnu.org/bugzilla/>
2014-07-09 22:38 ` fxcoudert at gcc dot gnu.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).