diff options
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/cp/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/cp/decl.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 12d8435..dbebfa8 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +2003-07-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> + + * decl.c (finish_enum): Initialize underlying_type. + 2003-07-29 Nathan Sidwell <nathan@codesourcery.com> PR c++/9447 diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index 637ad1f..3ed6744 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)); |