------- Comment #25 from janus at gcc dot gnu dot org 2010-06-11 22:16 ------- This seems to be a module-loading bug. When reading the specific binding of the TBP 'get' from 'mod1' (which happens in module.c, mio_typebound_proc), we expect to get the symbol 'my_get' from 'mod1', but instead we get 'my_get' from 'mod2'.
My knowledge of the module-reading code is not sufficient to see where stuff goes wrong. Maybe someone else can? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42769