https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93483
--- Comment #13 from Steve Kargl <sgk at troutmask dot apl.washington.edu> --- On Thu, Oct 13, 2022 at 07:35:30PM +0000, mikael at gcc dot gnu.org wrote: > > --- Comment #11 from Mikael Morin <mikael at gcc dot gnu.org> --- > (In reply to Steve Kargl from comment #8) > > If regtesting complete ok, and Mikael doesn't find any additional > > problems. Please commit. > > Unfortunately, I think there is one problem. > Generally speaking, I don't like doing too much at parsing stage, and > especially simplifying. It's too early in my opinion. > > Here is an example, where the array simplifies using the host-associated > parameter value instead of calling the contained function with the same name > hiding it. It is admittedly somewhat artificial. > If might be artificial, but "wrong code" is not a pleasant side effect. There is array.cc:gfc_resolve_array_constructor(). I haven't looked to see when, or even if, this is called when compiling the examples that Gerhard, Harald, and you have devised.