From 53073dc998eb76bd7b898d3bab1a9aeac543fd22 Mon Sep 17 00:00:00 2001 From: amylaar Date: Wed, 26 Jan 2005 18:45:00 +0000 Subject: [PATCH] * parse.c (cp_parser_initializer_clause): Initialize *non_constant_p. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94270 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/cp/ChangeLog | 4 ++++ gcc/cp/parser.c | 3 +++ 2 files changed, 7 insertions(+) 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)) -- 2.11.0