public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/53537] New: Abstract interface with import interferes with only-clause
@ 2012-05-31 11:03 arjen.markus at deltares dot nl
  2012-05-31 15:20 ` [Bug fortran/53537] [4.5/4.6/4.7/4.8 Regression] Explicit IMPORT of renamed USE-associated symbol fails burnus at gcc dot gnu.org
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: arjen.markus at deltares dot nl @ 2012-05-31 11:03 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 53537
           Summary: Abstract interface with import interferes with
                    only-clause
    Classification: Unclassified
           Product: gcc
           Version: 4.6.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: arjen.markus@deltares.nl


The program below gives errors on the use of the parameter wp. If the interface
is not present, the program gets compiled. It is probably possible 
to reduce it even further, but the error disappears when the "only: wp => dp" 
clause is commented out.

----

module select_precision
    implicit none

    integer, parameter :: sp = kind( 1.0 )
    integer, parameter :: dp = kind( 1.0d0 )

    integer, parameter :: wp = sp

end module select_precision

module ode_types
    use select_precision, only: wp => dp
    implicit none

    private
    public :: wp

    type, abstract, public :: ode_system_t
        real(wp), dimension(:), allocatable :: x, x1, x2, x3, x4
        real(wp)                            :: time, deltt
        integer                             :: size = 0
    end type ode_system_t

    interface
        function ode_derivative( this, x, time ) result(deriv)
            import                 :: ode_system_t, wp
            class(ode_system_t)    :: this
            real(wp), dimension(:) :: x
            real(wp)               :: time
            real(wp), dimension(size(x)) :: deriv
        end function ode_derivative
    end interface
end module ode_types


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

end of thread, other threads:[~2013-02-19 13:08 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-31 11:03 [Bug fortran/53537] New: Abstract interface with import interferes with only-clause arjen.markus at deltares dot nl
2012-05-31 15:20 ` [Bug fortran/53537] [4.5/4.6/4.7/4.8 Regression] Explicit IMPORT of renamed USE-associated symbol fails burnus at gcc dot gnu.org
2012-05-31 15:50 ` burnus at gcc dot gnu.org
2012-05-31 16:44 ` burnus at gcc dot gnu.org
2012-06-01  8:04 ` burnus at gcc dot gnu.org
2012-06-13 13:54 ` rguenth at gcc dot gnu.org
2012-07-02 12:58 ` [Bug fortran/53537] [4.6/4.7/4.8 " rguenth at gcc dot gnu.org
2013-01-09 13:54 ` mikael at gcc dot gnu.org
2013-01-15 17:50 ` mikael at gcc dot gnu.org
2013-01-28 14:37 ` mikael at gcc dot gnu.org
2013-01-28 20:09 ` dominiq at lps dot ens.fr
2013-01-29 12:43 ` mikael at gcc dot gnu.org
2013-02-15  7:30 ` [Bug fortran/53537] [4.6/4.7 " burnus at gcc dot gnu.org
2013-02-17 23:00 ` mikael at gcc dot gnu.org
2013-02-19 13:08 ` mikael 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).