This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/57116] ICE for pointer assignment inside SELECT TYPE on UP entity
- From: "dominiq at lps dot ens.fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 29 Apr 2013 21:54:39 +0000
- Subject: [Bug fortran/57116] ICE for pointer assignment inside SELECT TYPE on UP entity
- Auto-submitted: auto-generated
- References: <bug-57116-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57116
Dominique d'Humieres <dominiq at lps dot ens.fr> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2013-04-29
Ever Confirmed|0 |1
--- Comment #1 from Dominique d'Humieres <dominiq at lps dot ens.fr> 2013-04-29 21:54:39 UTC ---
Confirmed. The test passes if I define explicitly the bounds, i.e.,
subroutine extract(this, v, ic)
class(*), target :: this(:)
real, pointer :: v(:)
integer :: ic, m, n
n = ubound(this,1)
m = n-ic+1
select type (this)
type is (real)
v(1:m) => this(ic:n)
class is (foo)
v(1:m) => this(ic:n)%v
end select
end subroutine extract