mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-24 20:59:59 +08:00
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:
parent
1066e2b58d
commit
14fc34261e
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user