diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 12d843583f1..dbebfa8dd2a 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +2003-07-29 Rainer Orth + + * decl.c (finish_enum): Initialize underlying_type. + 2003-07-29 Nathan Sidwell PR c++/9447 diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index 637ad1f36d5..3ed6744a9e0 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -13043,7 +13043,7 @@ finish_enum (tree enumtype) int highprec; int precision; integer_type_kind itk; - tree underlying_type; + tree underlying_type = NULL_TREE; /* We built up the VALUES in reverse order. */ TYPE_VALUES (enumtype) = nreverse (TYPE_VALUES (enumtype));