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
This commit is contained in:
Joseph Myers 2001-05-22 18:58:43 +01:00 committed by Joseph Myers
parent 1066e2b58d
commit 14fc34261e
2 changed files with 7 additions and 2 deletions

View File

@ -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

View File

@ -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);