public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/54195] New: [4.8 Regression][OOP] IMPORT fails with GENERIC TBP: "is already present in the interface"
@ 2012-08-07 15:44 burnus at gcc dot gnu.org
  2012-08-07 15:46 ` [Bug fortran/54195] " burnus at gcc dot gnu.org
                   ` (19 more replies)
  0 siblings, 20 replies; 21+ messages in thread
From: burnus at gcc dot gnu.org @ 2012-08-07 15:44 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 54195
           Summary: [4.8 Regression][OOP] IMPORT fails with GENERIC TBP:
                    "is already present in the interface"
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Keywords: rejects-valid
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: burnus@gcc.gnu.org
                CC: damian@rouson.net, janus@gcc.gnu.org


Reported by Damian at http://gcc.gnu.org/ml/fortran/2012-08/msg00041.html

The following program fails with:
    generic :: operator(-) => unary
                             1
Error: Entity 'unary' at (1) is already present in the interface

It works if one replaces "IMPORT :: foo" by "IMPORT".


module import_clashes_with_generic
  type ,abstract :: foo
  contains
    procedure :: unary
    generic :: operator(-) => unary
  end type

  abstract interface
    integer function bar()
      import :: foo
    end function
  end interface
contains
  integer function unary(rhs)
    class(foo) ,intent(in) :: rhs
  end function
end module


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

end of thread, other threads:[~2013-02-04 20:53 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-07 15:44 [Bug fortran/54195] New: [4.8 Regression][OOP] IMPORT fails with GENERIC TBP: "is already present in the interface" burnus at gcc dot gnu.org
2012-08-07 15:46 ` [Bug fortran/54195] " burnus at gcc dot gnu.org
2012-08-07 16:45 ` janus at gcc dot gnu.org
2012-08-07 16:47 ` burnus at gcc dot gnu.org
2012-08-07 18:12 ` janus at gcc dot gnu.org
2012-08-07 20:23 ` janus at gcc dot gnu.org
2012-08-07 20:58 ` janus at gcc dot gnu.org
2012-08-07 21:21 ` janus at gcc dot gnu.org
2012-08-07 22:06 ` janus at gcc dot gnu.org
2012-08-20  9:45 ` janus at gcc dot gnu.org
2012-09-19 14:20 ` rguenth at gcc dot gnu.org
2013-01-07 21:23 ` janus at gcc dot gnu.org
2013-01-08  9:47 ` janus at gcc dot gnu.org
2013-01-11 14:07 ` mikael at gcc dot gnu.org
2013-01-11 14:30 ` janus at gcc dot gnu.org
2013-02-02 11:07 ` mikael at gcc dot gnu.org
2013-02-02 11:16 ` mikael at gcc dot gnu.org
2013-02-02 12:14 ` mikael at gcc dot gnu.org
2013-02-04 18:35 ` mikael at gcc dot gnu.org
2013-02-04 19:06 ` mikael at gcc dot gnu.org
2013-02-04 20:53 ` 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).