diff options
author | Joseph Myers <jsm28@cam.ac.uk> | 2001-05-22 18:58:43 +0100 |
---|---|---|
committer | Joseph Myers <jsm28@gcc.gnu.org> | 2001-05-22 18:58:43 +0100 |
commit | 14fc34261e441958450b279b79ab7a622c41aa33 (patch) | |
tree | b5c2fea2a079404339baf6993e8e46d6072c0a07 | |
parent | 1066e2b58d90fb2bde0af778dd67136b41f067fc (diff) | |
download | gcc-14fc34261e441958450b279b79ab7a622c41aa33.zip gcc-14fc34261e441958450b279b79ab7a622c41aa33.tar.gz gcc-14fc34261e441958450b279b79ab7a622c41aa33.tar.bz2 |
parse.y: Refer to compound literals as such, not as constructor-expressions.
* parse.y: Refer to compound literals as such, not as
constructor-expressions.
From-SVN: r42455
-rw-r--r-- | gcc/cp/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cp/parse.y | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 5d6ca8f..241b2c3 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2001-05-22 Joseph S. Myers <jsm28@cam.ac.uk> + + * parse.y: Refer to compound literals as such, not as + constructor-expressions. + 2001-05-21 Mark Mitchell <mark@codesourcery.com> * call.c (build_op_delete_call): Ignore exception-specifications diff --git a/gcc/cp/parse.y b/gcc/cp/parse.y index 356e645..6e2ac18 100644 --- a/gcc/cp/parse.y +++ b/gcc/cp/parse.y @@ -1338,8 +1338,8 @@ cast_expr: tree init = build_nt (CONSTRUCTOR, NULL_TREE, nreverse ($3)); if (pedantic) - pedwarn ("ISO C++ forbids constructor-expressions"); - /* Indicate that this was a GNU C constructor expression. */ + pedwarn ("ISO C++ forbids compound literals"); + /* Indicate that this was a C99 compound literal. */ TREE_HAS_CONSTRUCTOR (init) = 1; $$ = reparse_absdcl_as_casts ($$, init); |