]> gcc.gnu.org Git - gcc.git/commitdiff
parse.y: Refer to compound literals as such, not as constructor-expressions.
authorJoseph Myers <jsm28@cam.ac.uk>
Tue, 22 May 2001 17:58:43 +0000 (18:58 +0100)
committerJoseph Myers <jsm28@gcc.gnu.org>
Tue, 22 May 2001 17:58:43 +0000 (18:58 +0100)
* parse.y: Refer to compound literals as such, not as
constructor-expressions.

From-SVN: r42455

gcc/cp/ChangeLog
gcc/cp/parse.y

index 5d6ca8f60209210afaa5ab4de69dacd4c69a1619..241b2c3b9a0f51ccefcdbe76b1e20ef8e1673acd 100644 (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
index 356e645bbbcb2c2041c15dc781def3fac9b7aa21..6e2ac183ce55685f87ee308b47f984753480731c 100644 (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);
This page took 0.08146 seconds and 5 git commands to generate.