Commit 3547d57e by Janus Weil

re PR fortran/49400 ([F08] Proc-pointer declaration in BLOCK construct)

2011-06-18  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/49400
	* decl.c (gfc_match_procedure): Allow PROCEDURE declarations inside
	BLOCK constructs.

2011-06-18  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/49400
	* gfortran.dg/proc_ptr_31.f90: New.

From-SVN: r175177
parent c020c92b
2011-06-18 Janus Weil <janus@gcc.gnu.org>
PR fortran/49400
* decl.c (gfc_match_procedure): Allow PROCEDURE declarations inside
BLOCK constructs.
2011-06-17 Janus Weil <janus@gcc.gnu.org> 2011-06-17 Janus Weil <janus@gcc.gnu.org>
PR fortran/48699 PR fortran/48699
......
...@@ -4970,6 +4970,7 @@ gfc_match_procedure (void) ...@@ -4970,6 +4970,7 @@ gfc_match_procedure (void)
case COMP_MODULE: case COMP_MODULE:
case COMP_SUBROUTINE: case COMP_SUBROUTINE:
case COMP_FUNCTION: case COMP_FUNCTION:
case COMP_BLOCK:
m = match_procedure_decl (); m = match_procedure_decl ();
break; break;
case COMP_INTERFACE: case COMP_INTERFACE:
......
2011-06-18 Janus Weil <janus@gcc.gnu.org>
PR fortran/49400
* gfortran.dg/proc_ptr_31.f90: New.
2011-06-18 Eric Botcazou <ebotcazou@adacore.com> 2011-06-18 Eric Botcazou <ebotcazou@adacore.com>
* gnat.dg/volatile6.adb: New test. * gnat.dg/volatile6.adb: New test.
......
! { dg-do compile }
!
! PR 49400: [F08] Proc-pointer declaration in BLOCK construct
!
! Contributed by Tobias Burnus <burnus@gcc.gnu.org>
block
procedure(real),pointer :: p
end block
end
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