This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Fortran, committed] Add the working testcase for PR fortran/29290


Hello,

the reported case in PR fortran/29290 is now rejected as expected.
I have dejagnu-fied it and committed as obvious.

Mikael

PS: the PR can't be closed as the runtime behaviour mandated by the
standard isn't respected (the wrong procedure is called).


Index: gfortran.dg/interface_37.f90
===================================================================
--- gfortran.dg/interface_37.f90	(révision 0)
+++ gfortran.dg/interface_37.f90	(révision 190504)
@@ -0,0 +1,16 @@
+! { dg-do compile }
+!
+! PR fortran/39290
+! Subroutine/function ambiguity in generics.
+!
+     interface q
+       subroutine qr(f)
+         implicit real(f)
+         external f
+       end subroutine
+       subroutine qc(f)
+         implicit complex(f)
+         external f
+       end subroutine ! { dg-error "Ambiguous interfaces" }
+     end interface q
+   end
Index: ChangeLog
===================================================================
--- ChangeLog	(révision 190503)
+++ ChangeLog	(révision 190504)
@@ -1,3 +1,8 @@
+2012-08-18  Mikael Morin  <mikael@gcc.gnu.org>
+
+	PR fortran/39290
+	* gfortran.dg/interface_37.f90: New test.
+
 2012-08-17  H.J. Lu  <hongjiu.lu@intel.com>
 	    Gary Funck <gary@intrepid.com>
 



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]