* resolve.c (resolve_symbol): Initialize constructor_expr to NULL.

From-SVN: r110611
This commit is contained in:
Jakub Jelinek 2006-02-05 12:25:05 +01:00 committed by Jakub Jelinek
parent 41441e2545
commit dc2cd23211
2 changed files with 5 additions and 0 deletions

View file

@ -1,3 +1,7 @@
2006-02-05 Jakub Jelinek <jakub@redhat.com>
* resolve.c (resolve_symbol): Initialize constructor_expr to NULL.
2006-02-04 Thomas Koenig <Thomas.Koenig@online.de>
PR fortran/25075

View file

@ -4863,6 +4863,7 @@ resolve_symbol (gfc_symbol * sym)
specification-part of a module and does not have the ALLOCATABLE
or POINTER attribute, the object shall have the SAVE attribute." */
constructor_expr = NULL;
if (sym->ts.type == BT_DERIVED && !(sym->value || flag))
constructor_expr = gfc_default_initializer (&sym->ts);