public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "kargl at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/51946] file compiles properly on IBM xlf compiler and Cray compiler
Date: Sun, 22 Jan 2012 20:26:00 -0000	[thread overview]
Message-ID: <bug-51946-4-DWQrbplMPh@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-51946-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #8 from kargl at gcc dot gnu.org 2012-01-22 19:54:11 UTC ---
Reduced testcase

module integrable_model_module

   implicit none

   type, abstract, public :: integrable_model
      contains
         procedure(default_constructor), deferred :: empty_instance
   end type

   abstract interface
      function default_constructor(this) result(blank_slate)
         import :: integrable_model
         class(integrable_model), intent(in)  :: this
         class(integrable_model), allocatable :: blank_slate
      end function
   end interface

   contains

      subroutine integrate(this)
         class(integrable_model), intent(inout) :: this
         class(integrable_model), allocatable   :: residual
         allocate(residual, source=this%empty_instance())
      end subroutine

end module integrable_model_module


laptop:kargl[315] gfc4x -c foo.f90
foo.f90: In function 'integrate':
foo.f90:23:0: internal compiler error: in conv_function_val, at
fortran/trans-expr.c:2191
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
laptop:kargl[316] gfc4x -v
Using built-in specs.
COLLECT_GCC=gfortran
COLLECT_LTO_WRAPPER=/usr/home/kargl/work/libexec/gcc/i386-unknown-freebsd10.0/4.7.0/lto-wrapper
Target: i386-unknown-freebsd10.0
Configured with: ../gcc4x/configure --prefix=/usr/home/kargl/work
--enable-languages=c,fortran --disable-libmudflap --disable-bootstrap
Thread model: posix
gcc version 4.7.0 20120119 (experimental) (GCC)


  parent reply	other threads:[~2012-01-22 19:55 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-22 17:03 [Bug fortran/51946] New: file compiles properly on IBM xlf compiler and cary compiler dominique.pelletier at polymtl dot ca
2012-01-22 17:14 ` [Bug fortran/51946] " kargl at gcc dot gnu.org
2012-01-22 17:17 ` burnus at gcc dot gnu.org
2012-01-22 17:31 ` burnus at gcc dot gnu.org
2012-01-22 18:17 ` burnus at gcc dot gnu.org
2012-01-22 19:22 ` sgk at troutmask dot apl.washington.edu
2012-01-22 19:55 ` [Bug fortran/51946] file compiles properly on IBM xlf compiler and Cray compiler dominique.pelletier at polymtl dot ca
2012-01-22 20:15 ` dominique.pelletier at polymtl dot ca
2012-01-22 20:26 ` kargl at gcc dot gnu.org [this message]
2012-01-22 22:25 ` burnus at gcc dot gnu.org
2012-01-23 17:57 ` burnus at gcc dot gnu.org
2012-01-27 10:10 ` pault at gcc dot gnu.org
2012-01-27 10:38 ` pault at gcc dot gnu.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-51946-4-DWQrbplMPh@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).