https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119836
--- Comment #3 from kargls at comcast dot net --- Well, that's weird. It appears that I'm the guilty person. 'git blame resolve.cc' leads to 7d92901c878c commit 7d92901c878c6c00ada7f9cee8825f03ad4722f1 Author: Steve Kargl <kar...@comcast.net> Date: Sun Nov 24 18:26:03 2024 -0800 Fortran: Check IMPURE in BLOCK inside DO CONCURRENT. PR fortran/117765 gcc/fortran/ChangeLog: * resolve.cc (check_pure_function): Check the stack to see if the function is in a nested BLOCK and, if that block is inside a DO_CONCURRENT, issue an error. gcc/testsuite/ChangeLog: * gfortran.dg/impure_fcn_do_concurrent.f90: New test.