Commit a2fee3d5 by Paolo Carlini Committed by Paolo Carlini

re PR c++/16859 (Empty initializer for array of unknown size spuriously accepted)

2005-03-09  Paolo Carlini  <pcarlini@suse.de>

	PR c++/16859
	* g++.dg/init/brace4.C: New test.

From-SVN: r96195
parent 07900878
2005-03-09 Paolo Carlini <pcarlini@suse.de>
PR c++/16859
* g++.dg/init/brace4.C: New test.
2005-03-09 Nathan Sidwell <nathan@codesourcery.com>
PR c++/20186
......
// PR c++/16859
// { dg-do compile }
// { dg-options "-pedantic" }
int a[] = { }; // { dg-error "zero-size array" }
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