PR fortran/41807
* decl.c (variable_decl): Do not error on initialization within a
derived type specification of a pure procedure.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@154529
138bc75d-0d04-0410-961f-
82ee72b054a4
+2009-11-24 Jerry DeLisle <jvdelisle@gcc.gnu.org>
+
+ PR fortran/41807
+ * decl.c (variable_decl): Do not error on initialization within a
+ derived type specification of a pure procedure.
+
2009-11-24 Janus Weil <janus@gcc.gnu.org>
PR fortran/42045
m = MATCH_ERROR;
}
- if (gfc_pure (NULL))
+ if (gfc_pure (NULL) && gfc_state_stack->state != COMP_DERIVED)
{
gfc_error ("Initialization of pointer at %C is not allowed in "
"a PURE procedure");