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

Dominique d'Humieres <dominiq at lps dot ens.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2015-10-10
     Ever confirmed|0                           |1
      Known to fail|                            |4.8.5, 4.9.3, 5.2.0, 6.0

--- Comment #1 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
>From my version of the F2015 draft

C725 (R737) The expr shall be a designator that designates a variable with
either
            the TARGET or POINTER attribute and is not an array section with
            a vector subscript, or it shall be a reference to a function that
            returns a data pointer.

Note that 't(x( [ 1,4,9,25 ] ))' is not rejected but gives an ICE from 4.8 up
to trunk (6.0):

[Book15] f90/bug% gfortran pr56423.f90
pr56423.f90:11:0:

     y = t(x( [ 1,4,9,25 ] ))   ! (4)  ! Invalid per IR F08/0071 but not
rejected
 1
internal compiler error: in gfc_conv_expr_descriptor, at
fortran/trans-array.c:6702

where gfortran is 5.2.0.

Reply via email to