https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103039
--- Comment #3 from martin <mscfd at gmx dot net> --- Created attachment 51722 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51722&action=edit seemingly same problem but with associate instead of select type A similar problem with associate shows the same problem and probably has the seem root cause. It is slightly more complicated than the variant with select type, as it requires a class(..) component provided in the target of the associate statement. Otherwise warnings and subsequent segfault are similar.