This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/49400] Proc-pointer declaration in BLOCK construct
- From: "janus at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 17 Jun 2011 20:54:34 +0000
- Subject: [Bug fortran/49400] Proc-pointer declaration in BLOCK construct
- Auto-submitted: auto-generated
- References: <bug-49400-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49400
janus at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2011.06.17 20:54:14
AssignedTo|unassigned at gcc dot |janus at gcc dot gnu.org
|gnu.org |
Ever Confirmed|0 |1
--- Comment #1 from janus at gcc dot gnu.org 2011-06-17 20:54:14 UTC ---
(In reply to comment #0)
> Currently, one gets:
>
> test.f90:8.8:
>
> Procedure(Real),Pointer :: p
> 1
> Error: Unclassifiable statement at (1)
Fixing this is trivial:
Index: gcc/fortran/decl.c
===================================================================
--- gcc/fortran/decl.c (revision 175150)
+++ gcc/fortran/decl.c (working copy)
@@ -4970,6 +4970,7 @@ gfc_match_procedure (void)
case COMP_MODULE:
case COMP_SUBROUTINE:
case COMP_FUNCTION:
+ case COMP_BLOCK:
m = match_procedure_decl ();
break;
case COMP_INTERFACE: