Commit 14fc3426 by Joseph Myers Committed by Joseph Myers

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
parent 1066e2b5
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> 2001-05-21 Mark Mitchell <mark@codesourcery.com>
* call.c (build_op_delete_call): Ignore exception-specifications * call.c (build_op_delete_call): Ignore exception-specifications
......
...@@ -1338,8 +1338,8 @@ cast_expr: ...@@ -1338,8 +1338,8 @@ cast_expr:
tree init = build_nt (CONSTRUCTOR, NULL_TREE, tree init = build_nt (CONSTRUCTOR, NULL_TREE,
nreverse ($3)); nreverse ($3));
if (pedantic) if (pedantic)
pedwarn ("ISO C++ forbids constructor-expressions"); pedwarn ("ISO C++ forbids compound literals");
/* Indicate that this was a GNU C constructor expression. */ /* Indicate that this was a C99 compound literal. */
TREE_HAS_CONSTRUCTOR (init) = 1; TREE_HAS_CONSTRUCTOR (init) = 1;
$$ = reparse_absdcl_as_casts ($$, init); $$ = reparse_absdcl_as_casts ($$, init);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment