http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53718
--- Comment #8 from Dominique d'Humieres <dominiq at lps dot ens.fr> 2012-06-19 17:36:26 UTC --- (In reply to comment #7) > Indeed the following patch, which is practically a revert of the trans-decl.c > part of the above commit, makes the errors go away: ... Confirmed for the tests in this PR (as well as the test in http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46313#c25 ) without regression. Note that without the patch the tests fail only with -O0, but not with the optimization I have tried (-O1 or -O3). It would be nice if someone could compile gfortran.dg/select_type_12.f03 (and the tests) through valgrind (I cannot do it under darwin).