[Bug c++/107781] strchrnul' was not declared in this scope; did you mean 'strchr'? For contracts for canadian compilation
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Nov 22 14:30:07 GMT 2022
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 <jason@gcc.gnu.org>:
https://gcc.gnu.org/g:ac5054144bd2248e948842937448eb5f4ce36bfd
commit r13-4236-gac5054144bd2248e948842937448eb5f4ce36bfd
Author: Jason Merrill <jason@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.
More information about the Gcc-bugs
mailing list