public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/46262] New: [4.6 Regression] [OOP] tree check: expected function_type or method_type, have pointer_type
@ 2010-11-01 19:35 janus at gcc dot gnu.org
  2010-11-01 19:43 ` [Bug fortran/46262] " janus at gcc dot gnu.org
                   ` (16 more replies)
  0 siblings, 17 replies; 18+ messages in thread
From: janus at gcc dot gnu.org @ 2010-11-01 19:35 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: [4.6 Regression] [OOP] tree check: expected
                    function_type or method_type, have pointer_type
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: janus@gcc.gnu.org


The following code ICEs with current trunk:


module integrable_model_module

  implicit none 

  type :: integrable_model
  contains
    procedure :: multiply
    generic :: operator(*) => multiply
  end type integrable_model

  contains

    subroutine integrate (model)
      class(integrable_model) :: model
      print *,d_dt(model)*2.0
    end subroutine

    function d_dt (this)
      class(integrable_model), intent(in) :: this
      class(integrable_model), allocatable :: d_dt
    end function

    real function multiply(lhs, rhs)
      class(integrable_model), intent(in) :: lhs
      real, intent(in) :: rhs
    end function

end module


integrable_model.f03: In function ‘integrate’:
integrable_model.f03:15:0: internal compiler error: tree check: expected
function_type or method_type, have pointer_type in gimplify_call_expr, at
gimplify.c:2354

It is reported to work with 4.5.x and a 4.6 snapshot from 20100703.


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

end of thread, other threads:[~2012-01-02 13:04 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-01 19:35 [Bug fortran/46262] New: [4.6 Regression] [OOP] tree check: expected function_type or method_type, have pointer_type janus at gcc dot gnu.org
2010-11-01 19:43 ` [Bug fortran/46262] " janus at gcc dot gnu.org
2010-11-01 19:45 ` janus at gcc dot gnu.org
2010-11-01 19:49 ` janus at gcc dot gnu.org
2010-11-02  3:33 ` jvdelisle at gcc dot gnu.org
2010-11-02  5:22 ` jvdelisle at gcc dot gnu.org
2010-11-02  7:29 ` janus at gcc dot gnu.org
2010-11-03 15:38 ` rguenth at gcc dot gnu.org
2010-11-03 16:02 ` jakub at gcc dot gnu.org
2010-11-28 15:48 ` jvdelisle at gcc dot gnu.org
2010-11-28 16:10 ` jvdelisle at gcc dot gnu.org
2011-01-05  9:35 ` [Bug fortran/46262] " janus at gcc dot gnu.org
2011-03-07  8:39 ` janus at gcc dot gnu.org
2011-03-22 14:54 ` janus at gcc dot gnu.org
2011-03-25 21:02 ` jakub at gcc dot gnu.org
2011-04-28 17:21 ` rguenth at gcc dot gnu.org
2012-01-02 12:48 ` pault at gcc dot gnu.org
2012-01-02 13:04 ` pault 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).