[Bug fortran/95398] ICE on invalid code
dominiq at lps dot ens.fr
gcc-bugzilla@gcc.gnu.org
Thu Jun 4 12:08:29 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95398
Dominique d'Humieres <dominiq at lps dot ens.fr> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Status|UNCONFIRMED |NEW
Last reconfirmed| |2020-06-04
--- Comment #2 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Confirmed. GCC5 gives
pr95398.f90:32:16:
foo => array1(2,U)
1
Error: Pointer assignment target is neither TARGET nor POINTER at (1)
pr95398.f90:34:16:
foo => array2(2,U)
1
Error: Pointer assignment target is neither TARGET nor POINTER at (1)
pr95398.f90:18:9:
b%i = 1 !VDC
1
Error: 'b' at (1) associated to expression can not be used in a variable
definition context (assignment)
pr95398.f90:20:42:
call sub_with_in_and_inout_param(b,b) !VDC
1
Error: Rank mismatch in argument 'y' at (1) (rank-1 and scalar)
So this may be a regression.
More information about the Gcc-bugs
mailing list