https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71203

anlauf at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |anlauf at gcc dot gnu.org

--- Comment #14 from anlauf at gcc dot gnu.org ---
(In reply to Dominique d'Humieres from comment #13)
> With the following patch
[...]
> I get errors such as
> 
> % gfc pr71203_3.f90
> pr71203_3.f90:4:29:
> 
>     4 |    integer, parameter :: y(*) = [(x(i:i), i=1,2)]
>       |                             1
> Error: Can't initialize array with unknown shape at (1)

Well, the issue is with the implied do loop in the constructor in
conjunction with the array section not generating the proper shape.
(The "unrolled" loop does it right.)

There are several issues with (nested) array constructors,
such as [[ integer :: ]] not getting it right.

I'd rather leave the ICE here, as it might encourage debugging... ;-)

Reply via email to