public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/42051]  New: ICE on allocatable array TBP result
@ 2009-11-15 16:25 damian at rouson dot net
  2009-11-15 18:50 ` [Bug fortran/42051] [OOP] ICE on array-valued function with CLASS formal argument janus at gcc dot gnu dot org
                   ` (24 more replies)
  0 siblings, 25 replies; 26+ messages in thread
From: damian at rouson dot net @ 2009-11-15 16:25 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1493 bytes --]

Gfortran 4.5.0 20091106 (with Janus's patch for PR42048) produces the following
on the code below:

gfortran -c field_grid.f03 
field_grid.f03: In function ‘output’:
field_grid.f03:27:0: internal compiler error: in gfc_conv_variable, at
fortran/trans-expr.c:550
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.


module grid_module
  implicit none 

  type grid
    real ,dimension(1) :: x=1.
  contains
    procedure :: return_x
  end type 

contains

  function return_x(this) result(this_x)
    class(grid) ,intent(in) :: this
    real  ,dimension(1) :: this_x
    this_x = this%x
  end function

end module 

module field_module
  use grid_module, only : grid 
  implicit none 

  type field
    type(grid) :: mesh
  contains
    procedure :: output
  end type 

contains

  subroutine output(this)
    class(field) ,intent(in) :: this
    real ,dimension(:) ,allocatable :: x
    x=this%mesh%return_x()
  end subroutine

end module


-- 
           Summary: ICE on allocatable array TBP result
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: damian at rouson dot net
 GCC build triplet: Mac OS X 10.5
  GCC host triplet: Mac OS X 10.5
GCC target triplet: Mac OS X 10.5


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


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

end of thread, other threads:[~2011-08-16 21:22 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-42051-4@http.gcc.gnu.org/bugzilla/>
2011-08-16 21:23 ` [Bug fortran/42051] [OOP] ICE on array-valued function with CLASS formal argument janus at gcc dot gnu.org
2009-11-15 16:25 [Bug fortran/42051] New: ICE on allocatable array TBP result damian at rouson dot net
2009-11-15 18:50 ` [Bug fortran/42051] [OOP] ICE on array-valued function with CLASS formal argument janus at gcc dot gnu dot org
2009-12-03 21:28 ` pault at gcc dot gnu dot org
2009-12-03 21:46 ` pault at gcc dot gnu dot org
2009-12-04 13:18 ` dominiq at lps dot ens dot fr
2010-03-02 23:31 ` janus at gcc dot gnu dot org
2010-06-11  2:50 ` janus at gcc dot gnu dot org
2010-06-11  2:56 ` janus at gcc dot gnu dot org
2010-06-11 16:46 ` janus at gcc dot gnu dot org
2010-06-15 19:08 ` janus at gcc dot gnu dot org
2010-06-15 19:38 ` janus at gcc dot gnu dot org
2010-06-15 19:41 ` janus at gcc dot gnu dot org
2010-06-27 13:14 ` mikael at gcc dot gnu dot org
2010-06-27 13:16 ` mikael at gcc dot gnu dot org
2010-06-27 14:39 ` paul dot richard dot thomas at gmail dot com
2010-07-15 21:37 ` dfranke at gcc dot gnu dot org
2010-07-28 20:01 ` mikael at gcc dot gnu dot org
2010-07-29 11:23 ` mikael at gcc dot gnu dot org
2010-07-29 11:53 ` mikael at gcc dot gnu dot org
2010-07-31 10:28 ` mikael at gcc dot gnu dot org
2010-08-02 15:31 ` mikael at gcc dot gnu dot org
2010-08-04 14:18 ` mikael at gcc dot gnu dot org
2010-08-05 12:12 ` janus at gcc dot gnu dot org
2010-08-05 12:59 ` mikael at gcc dot gnu dot org
2010-08-05 21:09 ` mikael at gcc dot gnu dot org
2010-08-05 21:11 ` mikael at gcc dot gnu dot 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).