Bug 32578 - problem using iso_c_binding
Summary: problem using iso_c_binding
Status: RESOLVED DUPLICATE of bug 31229
Alias: None
Product: gcc
Classification: Unclassified
Component: fortran (show other bugs)
Version: 4.3.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks: 32580
  Show dependency treegraph
 
Reported: 2007-07-02 07:15 UTC by Joost VandeVondele
Modified: 2007-07-02 14:54 UTC (History)
5 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joost VandeVondele 2007-07-02 07:15:41 UTC
The following program generates bogus errors compiling with current gfortran:

MODULE X

  USE ISO_C_BINDING
  INTERFACE
    REAL(KIND=C_FLOAT) FUNCTION mytype( a ) BIND(C)
       USE ISO_C_BINDING
       INTEGER(KIND=C_INT), VALUE :: a
    END FUNCTION
    SUBROUTINE init() BIND(C,name="init")
    END SUBROUTINE
  END INTERFACE

  TYPE(C_FUNPTR), BIND(C,name="funpointer") :: funpointer

END MODULE X

USE X
CALL init()
END
Comment 1 kargls 2007-07-02 14:54:25 UTC

*** This bug has been marked as a duplicate of 31229 ***