public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/50174] New: internal compiler error: derived type allocation
@ 2011-08-24 10:17 pmason at ricardo dot com
  2011-08-24 11:36 ` [Bug fortran/50174] [4.7 Regression] ICE on " janus at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: pmason at ricardo dot com @ 2011-08-24 10:17 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 50174
           Summary: internal compiler error: derived type allocation
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: pmason@ricardo.com


Created attachment 25086
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25086
Simple module, contains type def + procedure

Get ICE when compiling code with a function that allocates a derived type
array. Compiled as "gfortran -c settee.f90". See test file attached.


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

* [Bug fortran/50174] [4.7 Regression] ICE on derived type allocation
  2011-08-24 10:17 [Bug fortran/50174] New: internal compiler error: derived type allocation pmason at ricardo dot com
@ 2011-08-24 11:36 ` janus at gcc dot gnu.org
  2011-08-24 12:37 ` janus at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: janus at gcc dot gnu.org @ 2011-08-24 11:36 UTC (permalink / raw)
  To: gcc-bugs

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

janus at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |janus at gcc dot gnu.org
            Summary|internal compiler error:    |[4.7 Regression] ICE on
                   |derived type allocation     |derived type allocation

--- Comment #1 from janus at gcc dot gnu.org 2011-08-24 11:34:30 UTC ---
Confirmed on 4.7 trunk. Works on 4.6.

Reduced test case:


  implicit none

  type settee
    real,allocatable :: seat(:)
  end type settee

  integer      :: is = 1, ie = 3
  type(settee),allocatable :: set1(:)

  allocate (set1(is:ie))

end


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

* [Bug fortran/50174] [4.7 Regression] ICE on derived type allocation
  2011-08-24 10:17 [Bug fortran/50174] New: internal compiler error: derived type allocation pmason at ricardo dot com
  2011-08-24 11:36 ` [Bug fortran/50174] [4.7 Regression] ICE on " janus at gcc dot gnu.org
@ 2011-08-24 12:37 ` janus at gcc dot gnu.org
  2011-08-24 14:37 ` janus at gcc dot gnu.org
  2011-08-25  9:31 ` burnus at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: janus at gcc dot gnu.org @ 2011-08-24 12:37 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from janus at gcc dot gnu.org 2011-08-24 11:36:35 UTC ---
Probably related to PR 50050.


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

* [Bug fortran/50174] [4.7 Regression] ICE on derived type allocation
  2011-08-24 10:17 [Bug fortran/50174] New: internal compiler error: derived type allocation pmason at ricardo dot com
  2011-08-24 11:36 ` [Bug fortran/50174] [4.7 Regression] ICE on " janus at gcc dot gnu.org
  2011-08-24 12:37 ` janus at gcc dot gnu.org
@ 2011-08-24 14:37 ` janus at gcc dot gnu.org
  2011-08-25  9:31 ` burnus at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: janus at gcc dot gnu.org @ 2011-08-24 14:37 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from janus at gcc dot gnu.org 2011-08-24 14:36:22 UTC ---
(In reply to comment #2)
> Probably related to PR 50050.

Apparently it is fixed by Mikael's patch at

http://gcc.gnu.org/ml/fortran/2011-08/msg00199.html


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

* [Bug fortran/50174] [4.7 Regression] ICE on derived type allocation
  2011-08-24 10:17 [Bug fortran/50174] New: internal compiler error: derived type allocation pmason at ricardo dot com
                   ` (2 preceding siblings ...)
  2011-08-24 14:37 ` janus at gcc dot gnu.org
@ 2011-08-25  9:31 ` burnus at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: burnus at gcc dot gnu.org @ 2011-08-25  9:31 UTC (permalink / raw)
  To: gcc-bugs

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

Tobias Burnus <burnus at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |burnus at gcc dot gnu.org
         Resolution|                            |DUPLICATE

--- Comment #4 from Tobias Burnus <burnus at gcc dot gnu.org> 2011-08-25 09:15:44 UTC ---
I marked it as duplicated of PR 50050 comment 7 as the error seems to be
identically.

If the patch at http://gcc.gnu.org/ml/fortran/2011-08/msg00199.html does not
fix the issue - or if the final commit does not fix the issue, feel free to
reopen this PR.

Sorry for the breakage.

*** This bug has been marked as a duplicate of bug 50050 ***


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

end of thread, other threads:[~2011-08-25  9:18 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-24 10:17 [Bug fortran/50174] New: internal compiler error: derived type allocation pmason at ricardo dot com
2011-08-24 11:36 ` [Bug fortran/50174] [4.7 Regression] ICE on " janus at gcc dot gnu.org
2011-08-24 12:37 ` janus at gcc dot gnu.org
2011-08-24 14:37 ` janus at gcc dot gnu.org
2011-08-25  9:31 ` burnus 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).