From: J"orn Rennecke Date: Wed, 26 Jan 2005 18:45:00 +0000 (+0000) Subject: * parse.c (cp_parser_initializer_clause): Initialize *non_constant_p. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b2802a4b4c280b6093752ee8b7672e3299ddbc2d;p=gcc.git * parse.c (cp_parser_initializer_clause): Initialize *non_constant_p. From-SVN: r94270 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 52a0ee6bb34..b3d0f6897af 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +2005-01-26 J"orn Rennecke + + * parse.c (cp_parser_initializer_clause): Initialize *non_constant_p. + 2005-01-25 Andrew Pinski * class.c (abort_fndecl_addr): New variable. diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c index 86a96fb71ec..9b43eff3358 100644 --- a/gcc/cp/parser.c +++ b/gcc/cp/parser.c @@ -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))