public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "damian at rouson dot net" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/42051]  New: ICE on allocatable array TBP result
Date: Sun, 15 Nov 2009 16:25:00 -0000	[thread overview]
Message-ID: <bug-42051-15301@http.gcc.gnu.org/bugzilla/> (raw)

[-- 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


             reply	other threads:[~2009-11-15 16:25 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-15 16:25 damian at rouson dot net [this message]
2009-11-15 18:31 ` [Bug fortran/42051] " janus at gcc dot gnu dot org
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-42051-15301@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).