This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/57116] ICE for pointer assignment inside SELECT TYPE on UP entity


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]