https://gcc.gnu.org/bugzilla/show_bug.cgi?id=128976
Steve Kargl <kargl at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Status|UNCONFIRMED |NEW
Last reconfirmed| |2026-11-24
--- Comment #6 from Steve Kargl <kargl at gcc dot gnu.org> ---
(In reply to Jürgen Reuter from comment #4)
> The outer routine has intent(in), while the inner one has intent(inout),
> which in my understanding should be allowed.
Well, I quoted the parts of the standard I could find.
subroutine t1_evaluate_ic (term, core)
...
class(p1_t), intent(in), pointer :: core
...
call term%evaluate_ic_external (core) ! <-- intent(in) actual arg
...
end subroutine t1_evaluate_ic
subroutine t1_evaluate_ic_external (term, core)
...
class(p1_t), intent(inout) :: core ! <-- intent(inout) dummy arg
...
end subroutine t1_evaluate_ic_external
Ah, I quoted nonpointer text. I missed that your actual argument has
the pointer attribute. Your dummy argument does not have the pointer
attribute, so the dummy argument is argument associated with the
target of the pointer. So, yes, I agree there appears to be a regression.