[Bug fortran/47195] [4.6 regression] New Fortran test failures

2011-01-06 Thread dfranke at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47195

Daniel Franke dfranke at gcc dot gnu.org changed:

   What|Removed |Added

 Status|UNCONFIRMED |ASSIGNED
   Last reconfirmed||2011.01.06 20:13:09
 CC||dfranke at gcc dot gnu.org
 Ever Confirmed|0   |1


[Bug fortran/47195] [4.6 regression] New Fortran test failures

2011-01-06 Thread burnus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47195

Tobias Burnus burnus at gcc dot gnu.org changed:

   What|Removed |Added

 CC||burnus at gcc dot gnu.org

--- Comment #1 from Tobias Burnus burnus at gcc dot gnu.org 2011-01-06 
20:17:24 UTC ---
That's the following patch. The third failure is for the file added by the
committal.

gcc/fortran/:
2011-01-06  Daniel Franke  franke.dan...@gmail.com

PR fortran/33117
PR fortran/46478
* parse.c (parse_interface): Remove check for procedure types.
* interface.c (check_interface0): Verify that procedures are
either all SUBROUTINEs or all FUNCTIONs.

gcc/testsuite/:
2011-01-06  Daniel Franke  franke.dan...@gmail.com

PR fortran/33117
PR fortran/46478
* gfortran.dg/interface_33.f90: New test.


[Bug fortran/47195] [4.6 regression] New Fortran test failures

2011-01-06 Thread dominiq at lps dot ens.fr
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47195

--- Comment #2 from Dominique d'Humieres dominiq at lps dot ens.fr 2011-01-06 
21:09:58 UTC ---
 FAIL: gfortran.dg/interface_33.f90  -O  (test for excess errors)

This is fixed by the following patch:

--- ../_clean/gcc/testsuite/gfortran.dg/interface_33.f902011-01-06
17:59:52.0 +0100
+++ gcc/testsuite/gfortran.dg/interface_33.f902011-01-06 22:07:48.0
+0100
@@ -1,4 +1,4 @@
-! { dg-do compile }
+! { dg-do compile }
 !
 ! PR fortran/33117, PR fortran/46478
 ! Procedures of a generic interface must be either
@@ -10,7 +10,7 @@
 !
 module m1
   interface gen
-subroutine sub()! dg-error { all SUBROUTINEs or all
FUNCTIONs }
+subroutine sub()! { dg-error all SUBROUTINEs or all
FUNCTIONs }
 end subroutine sub
 function bar()
   real :: bar
@@ -27,7 +27,7 @@ MODULE m2
 MODULE PROCEDURE subr_name
   END INTERFACE
 CONTAINS
-   LOGICAL FUNCTION func_name()  ! dg-error { all SUBROUTINEs or all
FUNCTIONs }
+   LOGICAL FUNCTION func_name()  ! { dg-error all SUBROUTINEs or all
FUNCTIONs }
END FUNCTION
SUBROUTINE subr_name()
END SUBROUTINE


[Bug fortran/47195] [4.6 regression] New Fortran test failures

2011-01-06 Thread dfranke at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47195

--- Comment #3 from Daniel Franke dfranke at gcc dot gnu.org 2011-01-06 
21:42:56 UTC ---
Author: dfranke
Date: Thu Jan  6 21:42:53 2011
New Revision: 168554

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=168554
Log:
2011-01-06  Daniel Franke  franke.dan...@gmail.com

PR fortran/47195
* gfortran.dg/interface_33.f90: Fixed dg-error declarations.
* gfortran.dg/defined_operators_1.f90: Split the subroutine
from the interface of functions to not hide the errors that
shall be tested.


Modified:
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/gfortran.dg/defined_operators_1.f90
trunk/gcc/testsuite/gfortran.dg/interface_33.f90


[Bug fortran/47195] [4.6 regression] New Fortran test failures

2011-01-06 Thread dfranke at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47195

Daniel Franke dfranke at gcc dot gnu.org changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED

--- Comment #4 from Daniel Franke dfranke at gcc dot gnu.org 2011-01-06 
21:44:28 UTC ---
Committed the fixes as obvious. ML-notification to follow. Sorry for the
breakage and thanks for noticing!

Closing.