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, "" };
}

Reply via email to