This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/69253] [6 Regression] ICE in cxx_incomplete_type_diagnostic initializing a flexible array member with empty string
- From: "msebor at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 18 Jan 2016 19:41:32 +0000
- Subject: [Bug c++/69253] [6 Regression] ICE in cxx_incomplete_type_diagnostic initializing a flexible array member with empty string
- Auto-submitted: auto-generated
- References: <bug-69253-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69253
Martin Sebor <msebor at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[6 Regression] g++ ICE at |[6 Regression] ICE in
|-O0 on x86_64-linux-gnu in |cxx_incomplete_type_diagnos
|"cxx_incomplete_type_diagno |tic initializing a flexible
|stic" |array member with empty
| |string
Known to fail| |6.0
--- Comment #3 from Martin Sebor <msebor at gcc dot gnu.org> ---
Oddly, the following slightly modified test case is accepted and doesn't ICE:
struct A { char i, a []; };
void foo () {
(struct A){ 1, "" };
}