http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57126
Bug #: 57126 Summary: Wrongly rejects a generic call because it doesn't match the intrinsic while another specific matches Classification: Unclassified Product: gcc Version: 4.9.0 Status: UNCONFIRMED Keywords: rejects-valid Severity: normal Priority: P3 Component: fortran AssignedTo: unassig...@gcc.gnu.org ReportedBy: bur...@gcc.gnu.org Created attachment 29984 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29984 Test case Reported by Roger Ferrer Ibáñez at https://groups.google.com/forum/?fromgroups=#!topic/comp.lang.fortran/y31DDXAXNAE The attached test case is accepted by NAG f95 (5.1) and by IBM XLF (12.1). But gfortran rejects it with: Y = RENAME(M=Y) 1 Error: Generic function 'size' at (1) is not consistent with a specific intrinsic interface X = RENAME(A=X) 1 Error: Generic function 'size' at (1) is not consistent with a specific intrinsic interface (Intel ifort 13.1.0 only rejects "X = RENAME(A=X)".)