diff options
| -rw-r--r-- | gcc/cp/ChangeLog | 4 | ||||
| -rw-r--r-- | gcc/cp/parser.c | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 52a0ee6..b3d0f68 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -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. diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c index 86a96fb..9b43eff 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)) |
