https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109684
--- Comment #11 from Steve Kargl <sgk at troutmask dot apl.washington.edu> --- On Mon, Aug 07, 2023 at 10:04:54PM +0000, kargl at gcc dot gnu.org wrote: > > Note final->attr.pure = 0 seems to contradict C1595 while constructing > the wrapper. I'm not too familiar with this portion of gfortran's > internals. Either the attribute should be set to 1 or the error > message can be suppressed through inspection of final->attr.artificial. > Whoops, I thought I included C1595 Any procedure referenced in a pure subprogram, including oner referenced via a defined operation, defined assignment, defined input/output, or finalization, shall be pure.