https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119751
--- Comment #11 from Gaius Mulley <gaius at gcc dot gnu.org> --- Replying to comment#7 I think the solution is to extend the ISO attributes (eg <* DIALECT iso10514 *>) to specify the modula-2 dialect and also have another attribute to warn if the user module is importing a system module. <* gm2.m2_library | WARN ("direct import of this module is not advisable (did you mean -fiso)") *>