http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49648
Tobias Burnus <burnus at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pault at gcc dot gnu.org Blocks| |32834 Known to fail| |4.1.2, 4.3.4, 4.4.0, 4.5.1, | |4.6.0, 4.7.0 --- Comment #2 from Tobias Burnus <burnus at gcc dot gnu.org> 2011-07-05 17:29:45 UTC --- The crucial point about the bug seems to be that "getPhaseMatrix" is in a (different) module than the call in matmul. Paul, do you have an idea where to look? module m2 COMPLEX, SAVE, ALLOCATABLE :: P(:) contains FUNCTION getPhaseMatrix() RESULT(PM) COMPLEX:: PM(SIZE(P),3) PM=0.0 END FUNCTION end module m2 module m use m2 contains SUBROUTINE gf_generateEmbPot() COMPLEX :: sigma2(3,3) sigma2 = MATMUL(getPhaseMatrix(), sigma2) END SUBROUTINE end module m