https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115700
--- Comment #4 from Paul Thomas <pault at gcc dot gnu.org> --- (In reply to anlauf from comment #2) > Created attachment 58553 [details] > Draft patch > > Very hackish patch that sets the character length of the selector at the > beginning of the associate block if the target is a variable and thus is > known in advance. > > Not sure if this is the right approach, but it fixes the testcase. It looks OK to me. Cheers Paul