mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-03 21:51:45 +08:00
re PR fortran/66057 (ICE for incomplete generic statement (gfc_match_generic))
2015-05-18 Steven G. Kargl <kargl@gcc.gnu.org> PR fortran/66057 * decl.c(gfc_match_generic): Detected a malformed GENERIC statement. 2015-05-18 Steven G. Kargl <kargl@gcc.gnu.org> PR fortran/66057 * gfortran.dg/generic_29.f90: New tests. From-SVN: r223325
This commit is contained in:
parent
73641c881f
commit
377e37c159
@ -1,3 +1,8 @@
|
||||
2015-05-18 Steven G. Kargl <kargl@gcc.gnu.org>
|
||||
|
||||
PR fortran/66057
|
||||
* decl.c(gfc_match_generic): Detected a malformed GENERIC statement.
|
||||
|
||||
2015-05-18 Steven G. Kargl <kargl@gcc.gnu.org>
|
||||
|
||||
PR fortran/66043
|
||||
|
@ -8511,6 +8511,11 @@ gfc_match_generic (void)
|
||||
gfc_op2string (op));
|
||||
break;
|
||||
|
||||
case INTERFACE_NAMELESS:
|
||||
gfc_error ("Malformed GENERIC statement at %C");
|
||||
goto error;
|
||||
break;
|
||||
|
||||
default:
|
||||
gcc_unreachable ();
|
||||
}
|
||||
|
@ -1,3 +1,8 @@
|
||||
2015-05-18 Steven G. Kargl <kargl@gcc.gnu.org>
|
||||
|
||||
PR fortran/66057
|
||||
* gfortran.dg/generic_29.f90: New tests.
|
||||
|
||||
2015-05-18 Steven G. Kargl <kargl@gcc.gnu.org>
|
||||
|
||||
PR fortran/66043
|
||||
|
11
gcc/testsuite/gfortran.dg/generic_29.f90
Normal file
11
gcc/testsuite/gfortran.dg/generic_29.f90
Normal file
@ -0,0 +1,11 @@
|
||||
! { dg-do compile}
|
||||
! PR fortran/66057
|
||||
!
|
||||
! Original code from Gerhard Steinmetz
|
||||
! <gerhard dot steinmetz dot fortran at t-online dot de>
|
||||
program p
|
||||
type t
|
||||
contains
|
||||
generic :: ! { dg-error "Malformed GENERIC" }
|
||||
end type
|
||||
end
|
Loading…
x
Reference in New Issue
Block a user