https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102759

Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|diagnostic                  |ice-on-valid-code
             Status|NEW                         |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |msebor at gcc dot 
gnu.org

--- Comment #3 from Martin Sebor <msebor at gcc dot gnu.org> ---
The code is certainly undefined but (appallingly), it's syntactically valid C.

The correspondingly hideous C++ version is also accepted without a diagnostic
but doesn't ICE:

void a4 () { void fa4 (int[]); }
void fa4 (...);
void call_fa4 (void) { fa4 (a4); }

Reply via email to