decl.c (xref_basetypes): Don't use C99 construct in tag_code declaration and initiali...
authorHans-Peter Nilsson <hp@bitrange.com>
Mon, 3 Dec 2001 23:15:09 +0000 (23:15 +0000)
committerHans-Peter Nilsson <hp@gcc.gnu.org>
Mon, 3 Dec 2001 23:15:09 +0000 (23:15 +0000)
* decl.c (xref_basetypes): Don't use C99 construct in tag_code
declaration and initialization.

From-SVN: r47570

gcc/cp/ChangeLog
gcc/cp/decl.c

index 59e967c4963b953b6935fb91627231be48b786b5..3527d6bce7cd434d0f38f1a53d554b2b07c347f1 100644 (file)
@@ -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
index 74e829abd613bb5ec4ca66a0e767e9b60b241333..78f6fc5ba125011462b60c7293d2add0fe93cf7a 100644 (file)
@@ -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)
     {