Bug 18432 - ICE on subcomponent arrays of derived types
Summary: ICE on subcomponent arrays of derived types
Status: RESOLVED DUPLICATE of bug 15181
Alias: None
Product: gcc
Classification: Unclassified
Component: fortran (show other bugs)
Version: 4.0.0
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-11 19:07 UTC by Matt Kennel
Modified: 2005-07-23 22:49 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments
ICE test case (387 bytes, text/plain)
2004-11-11 19:08 UTC, Matt Kennel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Kennel 2004-11-11 19:07:04 UTC
This may be related to 15181.  This is a non-functional excerpt from a medium
sized code which stresses f95 some f95 features.

gfortran --version
GNU Fortran 95 (GCC 4.0.0 20041111 (experimental))
x86 linux. 

module gfortran_bug1
  integer, parameter :: kdkind = kind(0.0d0)

  type interval
      real(kdkind) :: lower,upper
  end type interval

  type :: tree_node
      ! an internal tree node
      private
      integer :: cut_dim
      ! the dimension to cut
      real(kdkind) :: cut_val
      ! where to cut the dimension
      real(kdkind) :: cut_val_left, cut_val_right
      ! improved cutoffs knowing the spread in child boxes.
      integer :: l, u
      type (tree_node), pointer :: left, right
      type(interval), pointer :: box(:) => null()
      ! child pointers
      ! Points included in this node are indexes[k] with k \in [l,u]


  end type tree_node

contains

  function main result(res)
    type(tree_node), pointer :: res

    write (*,*) res%left%box(1)%upper
    return
  end function main


end module gfortran_bug1
Comment 1 Matt Kennel 2004-11-11 19:08:11 UTC
Created attachment 7519 [details]
ICE test case
Comment 2 Andrew Pinski 2004-11-11 19:11:46 UTC
Yes this is a dup of bug 15181.

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