[Bug fortran/69398] ICE on class with duplicate dimension attribute specified

2016-01-20 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69398

--- Comment #1 from Gerhard Steinmetz  
---
Whereas, detected :

$ cat z2.f90
program p
   type t
   end type
   type(t), allocatable :: z(:)
   target :: z(:)
   allocate (z(2))
end


$ gfortran -c z2.f90
z2.f90:5:14:

target :: z(:)
  1

Error: Duplicate DIMENSION attribute specified at (1)

[Bug fortran/69398] ICE on class with duplicate dimension attribute specified

2016-01-20 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69398

--- Comment #2 from Gerhard Steinmetz  
---
BTW :

$ cat z1c.f90
program p
   type t
   end type
   class(t), allocatable :: z(:)
   target :: z(2)
   allocate (z(2))
end


$ gfortran-5.3.1 -c z1c.f90
z1c.f90:1:0:

 program p
 1
internal compiler error: in gfc_build_null_descriptor, at
fortran/trans-array.c:432

[Bug fortran/69398] ICE on class with duplicate dimension attribute specified

2016-01-20 Thread dominiq at lps dot ens.fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69398

Dominique d'Humieres  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2016-01-20
 Ever confirmed|0   |1

--- Comment #3 from Dominique d'Humieres  ---
Confirmed from 4.8 up to trunk (6.0). Note that the ICEs for the tests in
comment 0 and 2 are

internal compiler error: in gfc_conv_component_ref, at
fortran/trans-expr.c:2295

with trunk.