re PR c++/16859 (Empty initializer for array of unknown size spuriously accepted)
authorPaolo Carlini <pcarlini@suse.de>
Wed, 9 Mar 2005 17:03:34 +0000 (17:03 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Wed, 9 Mar 2005 17:03:34 +0000 (17:03 +0000)
commit0790087871480b09ee7e15a397b886f9df36b4fc
tree8eb378f345a71c8ed7a59ad7a085cd3bd7b2144c
parent5e91f7a384b7a767308f73b7a9d467986cc3472c
re PR c++/16859 (Empty initializer for array of unknown size spuriously accepted)

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

PR c++/16859
* decl.c (complete_array_type): In pedantic mode, return
3 for an empty initializer list as the initializer for an
array of unknown bound (8.5.1/4).
(maybe_deduce_size_from_array_init): Fix final test to use
the above.

From-SVN: r96194
gcc/cp/ChangeLog
gcc/cp/decl.c