[Bug fortran/87945] [9 Regression] ICE in var_element, at fortran/decl.c:281
gscfq@t-online.de
gcc-bugzilla@gcc.gnu.org
Mon Nov 12 19:25:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87945
--- Comment #2 from G. Steinmetz <gscfq@t-online.de> ---
z1.90 above should be _invalid_ code, because a type parameter
inquiry can never be assigned a value, and should not be on LHS.
An aequivalent example :
$ cat z4.f90
program p
character :: a, b
a%len = 1
b%kind = 'b' ! plus type mismatch
end
Both examples from pr87881 comment 2 are looking good with their
legal inquiries.
Tested with latest official snapshot, no additonal patches applied.
More information about the Gcc-bugs
mailing list