https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86206
--- Comment #6 from anlauf at gcc dot gnu.org ---
I agree that there is a strange bookkeeping issue.
Swapping the order of the two functions in comment#0 makes the ICE go away.
Printing forall_save, nvar, total_var in gfc_resolve_forall may give
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86206
kargl at gcc dot gnu.org changed:
What|Removed |Added
CC||kargl at gcc dot gnu.org
--- C
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86206
--- Comment #4 from Jürgen Reuter ---
Still present in v12.0.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86206
--- Comment #3 from Harald Anlauf ---
No ICE if the module is split into two parts:
! No ICE
module zero_mod
implicit none
contains
pure function zero_vec(xx) result(ret)
real, intent(in) :: xx(:)
real :: ret(size(xx))
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86206
Harald Anlauf changed:
What|Removed |Added
CC||anlauf at gmx dot de
--- Comment #2 from
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86206
Richard Biener changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
Last reconfirmed|