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

--- Comment #13 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-14 branch has been updated by Richard Biener
<rgue...@gcc.gnu.org>:

https://gcc.gnu.org/g:8d8b8ed7835a1a03932a8c90c7c725f9903450d5

commit r14-10811-g8d8b8ed7835a1a03932a8c90c7c725f9903450d5
Author: Richard Biener <rguent...@suse.de>
Date:   Sun Oct 13 11:42:27 2024 +0200

    tree-optimization/116481 - avoid building function_type[]

    The following avoids building an array type with function or method
    element type during diagnosing an array bound violation as this
    will result in an error, rejecting a program with a not too useful
    error message.  Instead build such array type manually.

            PR tree-optimization/116481
            * pointer-query.cc (build_printable_array_type):
            Build an array types with function or method element type
            manually to avoid bogus diagnostic.

            * gcc.dg/pr116481.c: New testcase.

    (cherry picked from commit 1506027347776a2f6ec5b92d56ef192e85944e2e)

Reply via email to