This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/58664] [c++11] ICE initializing array of incomplete type within union
- From: "paolo at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 20 May 2014 13:31:12 +0000
- Subject: [Bug c++/58664] [c++11] ICE initializing array of incomplete type within union
- Auto-submitted: auto-generated
- References: <bug-58664-4 at http dot gcc dot gnu dot org/bugzilla/>
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.carlini@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.carlini@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