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

--- Comment #9 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-12 branch has been updated by Jonathan Wakely
<r...@gcc.gnu.org>:

https://gcc.gnu.org/g:0bb30f94ace6be68bd315d03f36b24bbaec2bee7

commit r12-8591-g0bb30f94ace6be68bd315d03f36b24bbaec2bee7
Author: Marco Falke <falke.ma...@gmail.com>
Date:   Tue Jul 19 10:10:39 2022 +0100

    libstdc++: Make __from_chars_alnum_to_val conversion explicit

    The optimizations from commit r12-8175-ga54137c88061c7 introduced a
    clang integer sanitizer error.

    Fix this with an explicit static_cast, similar to the fix for PR 96766.

    libstdc++-v3/ChangeLog:

            * include/std/charconv (__from_chars_alnum_to_val): Replace
            implicit conversion from int to unsigned char with explicit
            cast.

    (cherry picked from commit 20ab3972240aff596a3fa98e9fb09ddc0658fbb3)

Reply via email to