]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* parse.c (cp_parser_initializer_clause): Initialize *non_constant_p.
authorJ"orn Rennecke <joern.rennecke@st.com>
Wed, 26 Jan 2005 18:45:00 +0000 (18:45 +0000)
committerJoern Rennecke <amylaar@gcc.gnu.org>
Wed, 26 Jan 2005 18:45:00 +0000 (18:45 +0000)
From-SVN: r94270

gcc/cp/ChangeLog
gcc/cp/parser.c

index 52a0ee6bb34ea2ea23e7e0b2ef96378143d9fc8f..b3d0f6897af3763371a101659be7aa466d79beaa 100644 (file)
@@ -1,3 +1,7 @@
+2005-01-26  J"orn Rennecke <joern.rennecke@st.com>
+
+       * parse.c (cp_parser_initializer_clause): Initialize *non_constant_p.
+
 2005-01-25  Andrew Pinski  <pinskia@physics.uc.edu>
 
        * class.c (abort_fndecl_addr): New variable.
index 86a96fb71ecc84b3f1d8018e4fb4ce02ba6883a8..9b43eff33580fe22150ee962560c81dbc9516479 100644 (file)
@@ -12001,6 +12001,9 @@ cp_parser_initializer_clause (cp_parser* parser, bool* non_constant_p)
 {
   tree initializer;
 
+  /* Assume the expression is constant.  */
+  *non_constant_p = false;
+
   /* If it is not a `{', then we are looking at an
      assignment-expression.  */
   if (cp_lexer_next_token_is_not (parser->lexer, CPP_OPEN_BRACE))