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

--- Comment #7 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jason Merrill <ja...@gcc.gnu.org>:

https://gcc.gnu.org/g:ac5054144bd2248e948842937448eb5f4ce36bfd

commit r13-4236-gac5054144bd2248e948842937448eb5f4ce36bfd
Author: Jason Merrill <ja...@redhat.com>
Date:   Mon Nov 21 17:42:14 2022 -0500

    c++: don't use strchrnul [PR107781]

    The contracts implementation was using strchrnul, which is a glibc
    extension, so bootstrap broke on non-glibc targets.  Use C89 strcspn
    instead.

            PR c++/107781

    gcc/cp/ChangeLog:

            * contracts.cc (role_name_equal): Use strcspn instead
            of strchrnul.

Reply via email to