diff options
author | J"orn Rennecke <joern.rennecke@st.com> | 2005-01-26 18:45:00 +0000 |
---|---|---|
committer | Joern Rennecke <amylaar@gcc.gnu.org> | 2005-01-26 18:45:00 +0000 |
commit | b2802a4b4c280b6093752ee8b7672e3299ddbc2d (patch) | |
tree | c00c77d871c17429381123bb44ce4547390f445b /gcc | |
parent | f7aa1423e222c3404666f54455d1968f7d769c83 (diff) | |
download | gcc-b2802a4b4c280b6093752ee8b7672e3299ddbc2d.zip gcc-b2802a4b4c280b6093752ee8b7672e3299ddbc2d.tar.gz gcc-b2802a4b4c280b6093752ee8b7672e3299ddbc2d.tar.bz2 |
* parse.c (cp_parser_initializer_clause): Initialize *non_constant_p.
From-SVN: r94270
Diffstat (limited to 'gcc')
-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)) |