https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67277
--- Comment #1 from Mikael Morin <mikael at gcc dot gnu.org> --- Created attachment 36215 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36215&action=edit Draft patch, untested, currently bootstrapping This patch adds a gfc_abstract_symbol class to abstract away the differences between gfc_symbol and gfc_intrinsic_symbol. Then the procedure symbol can be abstracted to a gfc_abstract_symbol, even if it is intrinsic. The change in symbol.c is necessary, otherwise the vptr is not set. I hope it works that way.