https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97758
--- Comment #1 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Jonathan Wakely <r...@gcc.gnu.org>: https://gcc.gnu.org/g:99bf3a817b9d31905dd12448e853ad2685635250 commit r11-4838-g99bf3a817b9d31905dd12448e853ad2685635250 Author: Jonathan Wakely <jwak...@redhat.com> Date: Mon Nov 9 10:09:51 2020 +0000 libstdc++: Include <typeinfo> even for -fno-rtti [PR 97758] The std::function code now uses std::type_info* even when RTTI is disabled, so it should include <typeinfo> unconditionally. Without this, Clang can't compile <functional> with -fno-rtti (it works with GCC because std::type_info gets declared automatically by the compiler). libstdc++-v3/ChangeLog: PR libstdc++/97758 * include/bits/std_function.h [!__cpp_rtti]: Include <typeinfo>.