http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60458
--- Comment #3 from janus at gcc dot gnu.org --- (In reply to Antony Lewis from comment #2) > Here's a related example: Though the test case may be loosely related to comment 0, the error is probably not so much related. Reduced version of comment 2: implicit none Type T integer :: val = 2 end type associate(X => T()) print *, X%val end associate end This compiles and runs cleanly with 4.6, but gives errors with 4.7, 4.8 and trunk. I think this should go into a separate PR.