Commit 23aa7aba by Giovanni Bajo

re PR c++/14181 (Cryptic error message for code that compiled without warnings in 3.3.x)

	PR c++/14181
	* g++.dg/parse/new2.C: New test.

From-SVN: r78068
parent 063e900f
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.
......
// { 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];
}
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