diff options
author | ro <ro@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-07-29 22:15:28 +0000 |
---|---|---|
committer | ro <ro@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-07-29 22:15:28 +0000 |
commit | d0ef003fba634ebff00788588936004a650b0e70 (patch) | |
tree | 2429feb94df73a5731150107073248273d198046 /gcc | |
parent | 87d7295474a10ce6fb32334e7c86f9cfe5fc420e (diff) | |
download | gcc-d0ef003fba634ebff00788588936004a650b0e70.tar.gz |
* decl.c (finish_enum): Initialize underlying_type.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@69941 138bc75d-0d04-0410-961f-82ee72b054a4
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 12d843583f1..dbebfa8dd2a 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 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)); |