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

--- Comment #5 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jakub Jelinek <ja...@gcc.gnu.org>:

https://gcc.gnu.org/g:76b7f60ffdb26c56d2c71bbeddf7da601de0e50e

commit r15-6778-g76b7f60ffdb26c56d2c71bbeddf7da601de0e50e
Author: Jakub Jelinek <ja...@redhat.com>
Date:   Fri Jan 10 15:07:41 2025 +0100

    c: Fix up expr location for __builtin_stdc_rotate_* [PR118376]

    Seems I forgot to set_c_expr_source_range for the __builtin_stdc_rotate_*
    case (the other __builtin_stdc_* cases already have it), which means
    the locations in expr are uninitialized, sometimes causing ICEs in linemap
    code, at other times just valgrind errors about uninitialized var uses.

    2025-01-10  Jakub Jelinek  <ja...@redhat.com>

            PR c/118376
            * c-parser.cc (c_parser_postfix_expression): Call
            set_c_expr_source_range before break in the __builtin_stdc_rotate_*
            case.

            * gcc.dg/pr118376.c: New test.

Reply via email to