diff options
Diffstat (limited to 'gcc/fortran/decl.c')
-rw-r--r-- | gcc/fortran/decl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/fortran/decl.c b/gcc/fortran/decl.c index 5b4ab182ed7..009b010db26 100644 --- a/gcc/fortran/decl.c +++ b/gcc/fortran/decl.c @@ -1673,8 +1673,10 @@ match_pointer_init (gfc_expr **init, int procptr) return m; /* Match non-NULL initialization. */ + gfc_matching_ptr_assignment = !procptr; gfc_matching_procptr_assignment = procptr; m = gfc_match_rvalue (init); + gfc_matching_ptr_assignment = 0; gfc_matching_procptr_assignment = 0; if (m == MATCH_ERROR) return MATCH_ERROR; |