https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58664
--- Comment #3 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> --- Author: paolo Date: Tue May 20 13:30:40 2014 New Revision: 210642 URL: http://gcc.gnu.org/viewcvs?rev=210642&root=gcc&view=rev Log: /cp 2014-05-20 Paolo Carlini <paolo.carl...@oracle.com> PR c++/58664 * typeck2.c (cxx_incomplete_type_inform): New. (cxx_incomplete_type_diagnostic): Use it. * decl.c (grokdeclarator): Check the element type of an incomplete array type; call the above. * cp-tree.h (cxx_incomplete_type_inform): Declare. /testsuite 2014-05-20 Paolo Carlini <paolo.carl...@oracle.com> PR c++/58664 * g++.dg/cpp0x/nsdmi-union6.C: New. * g++.dg/parse/pr58664.C: Likewise. * g++.dg/cpp0x/nsdmi6.C: Tweak. * g++.dg/parse/crash31.C: Likewise. * g++.dg/template/error2.C: Likewise. * g++.dg/template/inherit8.C: Likewise. * g++.dg/template/offsetof2.C: Likewise. Added: trunk/gcc/testsuite/g++.dg/cpp0x/nsdmi-union6.C trunk/gcc/testsuite/g++.dg/parse/pr58664.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/cp-tree.h trunk/gcc/cp/decl.c trunk/gcc/cp/typeck2.c trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/g++.dg/cpp0x/nsdmi6.C trunk/gcc/testsuite/g++.dg/parse/crash31.C trunk/gcc/testsuite/g++.dg/template/error2.C trunk/gcc/testsuite/g++.dg/template/inherit8.C trunk/gcc/testsuite/g++.dg/template/offsetof2.C