aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@bitrange.com>2001-12-03 23:15:09 +0000
committerHans-Peter Nilsson <hp@gcc.gnu.org>2001-12-03 23:15:09 +0000
commit591382c41fce61bca330ea9ba66dca337a6c9b68 (patch)
tree75cb79e4fe74646be805cceac9249831cadf5f6f /gcc
parent98a63868fcddbff73d8f9caa116168d38191529d (diff)
downloadgcc-591382c41fce61bca330ea9ba66dca337a6c9b68.zip
gcc-591382c41fce61bca330ea9ba66dca337a6c9b68.tar.gz
gcc-591382c41fce61bca330ea9ba66dca337a6c9b68.tar.bz2
decl.c (xref_basetypes): Don't use C99 construct in tag_code declaration and initialization.
* decl.c (xref_basetypes): Don't use C99 construct in tag_code declaration and initialization. From-SVN: r47570
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/ChangeLog5
-rw-r--r--gcc/cp/decl.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 59e967c..3527d6b 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,8 @@
+2001-12-03 Hans-Peter Nilsson <hp@bitrange.com>
+
+ * decl.c (xref_basetypes): Don't use C99 construct in tag_code
+ declaration and initialization.
+
2001-12-03 Neil Booth <neil@daikokuya.demon.co.uk>
* typeck2.c: Remove leading capital from diagnostic messages, as
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c
index 74e829a..78f6fc5 100644
--- a/gcc/cp/decl.c
+++ b/gcc/cp/decl.c
@@ -12849,6 +12849,7 @@ xref_basetypes (code_type_node, name, ref, binfo)
tree base;
int i, len;
+ enum tag_types tag_code;
/* If we are called from the parser, code_type_node will sometimes be a
TREE_LIST. This indicates that the user wrote
@@ -12857,7 +12858,7 @@ xref_basetypes (code_type_node, name, ref, binfo)
if (TREE_CODE (code_type_node) == TREE_LIST)
code_type_node = TREE_VALUE (code_type_node);
- enum tag_types tag_code = (enum tag_types) tree_low_cst (code_type_node, 1);
+ tag_code = (enum tag_types) tree_low_cst (code_type_node, 1);
if (tag_code == union_type)
{