diff --git a/src/compat/glibcxx_compat.cpp b/src/compat/glibcxx_compat.cpp index 6e04f6745..e91376f81 100644 --- a/src/compat/glibcxx_compat.cpp +++ b/src/compat/glibcxx_compat.cpp @@ -77,4 +77,11 @@ ctype::_M_widen_init() const { } } +void __throw_out_of_range_fmt(const char*, ...) __attribute__((__noreturn__)); +void __throw_out_of_range_fmt(const char* err, ...) +{ + // Safe and over-simplified version. Ignore the format and print it as-is. + __throw_out_of_range(err); +} + }// namespace std