OSDN Git Service

* parse.c (cp_parser_initializer_clause): Initialize *non_constant_p.
authoramylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 26 Jan 2005 18:45:00 +0000 (18:45 +0000)
committeramylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 26 Jan 2005 18:45:00 +0000 (18:45 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94270 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 52a0ee6..b3d0f68 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 86a96fb..9b43eff 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))