Commit 431f5969 by Steven G. Kargl

re PR fortran/43592 (Unexpected INTERFACE statement in INTERFACE block at (1))

2010-05-03  Steven G. Kargl  <kargl@gcc.gnu.org>

	PR fortran/43592
	* fortran/parse.c (parse_interface): Do not dereference a NULL pointer.

2010-05-03  Steven G. Kargl  <kargl@gcc.gnu.org>

	PR fortran/43592
	* gfortran.dg/unexpected_interface.f90: New test.

From-SVN: r158998
parent 42db504c
2010-05-03 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/43592
* fortran/parse.c (parse_interface): Do not dereference a NULL pointer.
2010-05-02 Tobias Burnus <burnus@net-b.de>
PR fortran/18918
......
......@@ -2264,9 +2264,9 @@ loop:
{
if (current_state == COMP_NONE)
{
if (new_state == COMP_FUNCTION)
if (new_state == COMP_FUNCTION && sym)
gfc_add_function (&sym->attr, sym->name, NULL);
else if (new_state == COMP_SUBROUTINE)
else if (new_state == COMP_SUBROUTINE && sym)
gfc_add_subroutine (&sym->attr, sym->name, NULL);
current_state = new_state;
......
2010-05-03 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/43592
* gfortran.dg/unexpected_interface.f90: New test.
2010-05-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* ada/acats/run_acats (which): New function.
......
! { dg-do compile }
! PR fortran/43592
! Original code submitted by Joost VandeVondele
! Dejagnu-ification by Steven G. Kargl
!
interface assignment (=)
interface pseudo_scalar ! { dg-error "Unexpected INTERFACE statement" }
pure function double_tensor2odd (x, t2) result (xt2)
! { dg-error "Unexpected end of file" "" { target "*-*-*" } 0 }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment