http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52531
--- Comment #5 from janus at gcc dot gnu.org 2012-06-09 09:34:53 UTC --- Note: Apart from the two workarounds mentioned in the test case, there is one other possibility to make it work, namely to make 'bar' also polymorphic (like the dummy 'var'), e.g.: class(test_type), allocatable :: bar