PR c++/14181
* g++.dg/parse/new2.C: New test.
From-SVN: r78068
+2004-02-19 Giovanni Bajo <giovannibajo@gcc.gnu.org>
+
+ PR c++/14181
+ * g++.dg/parse/new2.C: New test.
+
2004-02-18 Paul Brook <paul@codesourcery.com>
* gcc.c-torture/compile/libcall-1.c: New test.
--- /dev/null
+// { dg-do compile }
+// Contributed by David Daney <daney at gcc dot gnu dot org>
+// PR c++/14181: Cryptic error message for ill-formed new expressions
+
+void f1(void)
+{
+ (void)new (char*)[10]; // { dg-error "parenthesized|parentheses" }
+ (void)new char*[10];
+}