From: Jonathan Wakely Date: Mon, 9 Nov 2020 10:09:51 +0000 (+0000) Subject: libstdc++: Include even for -fno-rtti [PR 97758] X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=99bf3a817b9d31905dd12448e853ad2685635250;p=gcc.git libstdc++: Include even for -fno-rtti [PR 97758] The std::function code now uses std::type_info* even when RTTI is disabled, so it should include unconditionally. Without this, Clang can't compile 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 . --- diff --git a/libstdc++-v3/include/bits/std_function.h b/libstdc++-v3/include/bits/std_function.h index 054d9cbbf02..1788b882a8a 100644 --- a/libstdc++-v3/include/bits/std_function.h +++ b/libstdc++-v3/include/bits/std_function.h @@ -36,9 +36,7 @@ # include #else -#if __cpp_rtti -# include -#endif +#include #include #include #include