------- Comment #1 from janus at gcc dot gnu dot org  2009-05-15 21:51 -------
Here is a small patch which fixes the test case:

Index: gcc/fortran/primary.c
===================================================================
--- gcc/fortran/primary.c       (revision 147527)
+++ gcc/fortran/primary.c       (working copy)
@@ -2558,7 +2558,7 @@
       if (gfc_matching_procptr_assignment)
        {
          gfc_gobble_whitespace ();
-         if (gfc_peek_ascii_char () == '(')
+         if (!sym->attr.dimension && gfc_peek_ascii_char () == '(')
            /* Parse functions returning a procptr.  */
            goto function0;



-- 

janus at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |janus at gcc dot gnu dot org
                   |dot org                     |
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2009-05-15 21:51:18
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40164

Reply via email to