https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115700
anlauf at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |anlauf at gcc dot gnu.org --- Comment #2 from anlauf at gcc dot gnu.org --- Created attachment 58553 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58553&action=edit 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.