[Bug fortran/91471] f951: internal compiler error: gfc_variable_attr(): Bad array reference
SameeranJayant.Joshi at amd dot com
gcc-bugzilla@gcc.gnu.org
Sat Aug 17 08:04:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91471
--- Comment #2 from Sameeran Joshi <SameeranJayant.Joshi at amd dot com> ---
(In reply to kargl from comment #1)
> I have a patch that prevents the ICE. Remove ICE-on-valid-code
> tag as the code is invalid.
It fails when a value is assigned to the allocated space:
program dynamic
implicit none
integer,dimension(:), allocatable :: x
allocate(x(1))
x(1) = 10
stop x(1)
end program dynamic
Is above ICE-ON-INVALID code ?
Can you please specify the reason?
Thanks
More information about the Gcc-bugs
mailing list