https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125632
Steve Kargl <kargl at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed| |2026-06-06
CC| |kargl at gcc dot gnu.org
Ever confirmed|0 |1
Status|UNCONFIRMED |NEW
--- Comment #1 from Steve Kargl <kargl at gcc dot gnu.org> ---
Flang agrees with John.
% flang21 -o z o9.f90
error: Semantic errors in o9.f90
./o9.f90:7:7: error: Left-hand side of assignment is not definable
res = 10
^^^
./o9.f90:7:7: because: 'res' may not be defined in pure subprogram 'assign_res'
because it is host-associated
res = 10
^^^
./o9.f90:3:44: Declaration of 'res'
pure integer function Pure_func() result(res)