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

--- Comment #6 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-14 branch has been updated by Martin Uecker
<uec...@gcc.gnu.org>:

https://gcc.gnu.org/g:432f918f111498e0c3bfee5f9b2ddd8205370163

commit r14-11436-g432f918f111498e0c3bfee5f9b2ddd8205370163
Author: Martin Uecker <uec...@tugraz.at>
Date:   Sat Mar 22 17:05:51 2025 +0100

    c: minor fixes related to arrays of unspecified size

    The patch for PR117145 and PR117245 also fixed PR100420 and PR116284 which
    are bugs related to arrays of unspecified size.  Those are now represented
    as variable size arrays with size (0, 0).  There are still some loose ends,
    which are resolved here by

    1. adding a testcase for PR116284,
    2. moving code related to creation and detection of arrays of unspecified
    sizes in their own functions,
    3. preferring a specified size over an unspecified size when forming
    a composite type as required by C99 (PR118391)
    4. removing useless code in comptypes_internal and composite_type_internal.

            PR c/116284
            PR c/117391

    gcc/c/ChangeLog:
            * c-tree.h (c_type_unspecified_p): New inline function.
            * c-typeck.cc (c_build_array_type_unspecified): New function.
            (comptypes_interal): Remove useless code.
            (composite_type_internal): Update.
            * c-decl.cc (grokdeclarator): Revise.

    gcc/testsuite/ChangeLog:
            * gcc.dg/pr116284.c: New test.
            * gcc.dg/pr117391.c: New test.

    (cherry picked from commit 114abf075c1e28358173756042049c9992ae6572)

Reply via email to