[Bug libstdc++/96083] Clang can't compile <ext/throw_allocator.h>: error: use of undeclared identifier '__builtin_sprintf'
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Dec 16 14:33:47 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96083
--- Comment #1 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jonathan Wakely <redi@gcc.gnu.org>:
https://gcc.gnu.org/g:96d9670e88333d8896a5d2f2bb0403c1e2ad19ab
commit r11-6146-g96d9670e88333d8896a5d2f2bb0403c1e2ad19ab
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Wed Dec 16 13:50:34 2020 +0000
libstdc++: Only use __builtin_sprintf if supported [PR 96083]
Clang doesn't support __builtin_sprintf, so use std::sprintf instead.
libstdc++-v3/ChangeLog:
PR libstdc++/96083
* include/ext/throw_allocator.h: Use __has_builtin to check for
__builtin_sprintf support, and use std::sprtinf if necessary.
More information about the Gcc-bugs
mailing list