diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 5d6ca8f6020..241b2c3b9a0 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2001-05-22 Joseph S. Myers + + * parse.y: Refer to compound literals as such, not as + constructor-expressions. + 2001-05-21 Mark Mitchell * call.c (build_op_delete_call): Ignore exception-specifications diff --git a/gcc/cp/parse.y b/gcc/cp/parse.y index 356e645bbbc..6e2ac183ce5 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);