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

--- Comment #5 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-14 branch has been updated by Andrew Pinski
<[email protected]>:

https://gcc.gnu.org/g:9c92d59530df5f52af9d08201cb907335b1f8e90

commit r14-12163-g9c92d59530df5f52af9d08201cb907335b1f8e90
Author: Andrew Pinski <[email protected]>
Date:   Mon Aug 18 12:00:45 2025 -0700

    docs: Fix __builtin_object_size example [PR121581]

    This example used to work (with C) in GCC 14 before the
    warning for different pointer types without a cast was changed
    to an error.
    The fix is to make the q variable `int*` rather than the current `char*`.
    This also fixes the example for C++ too.

    Pushed as obvious after doing a `make html`.

            PR middle-end/121581
    gcc/ChangeLog:

            * doc/extend.texi (__builtin_object_size): Fix example.

    Signed-off-by: Andrew Pinski <[email protected]>
    (cherry picked from commit 2be801a805c6cca08aaa33fd387dcc7bd4fe8aac)

Reply via email to