This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/69253] [6 Regression] ICE in cxx_incomplete_type_diagnostic initializing a flexible array member with empty string


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]