aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/include/std/complex
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2022-11-16 13:48:39 +0000
committerJonathan Wakely <jwakely@redhat.com>2022-11-16 20:52:37 +0000
commit2f5c071860ba3f8ef67d0b9d8291a73766ce0a44 (patch)
tree149f7dbd839ff83133d14069ef7747368b669a0f /libstdc++-v3/include/std/complex
parent22cb0fea718fd4dab8c97c8f03054a2fb7dc3d76 (diff)
downloadgcc-2f5c071860ba3f8ef67d0b9d8291a73766ce0a44.zip
gcc-2f5c071860ba3f8ef67d0b9d8291a73766ce0a44.tar.gz
gcc-2f5c071860ba3f8ef67d0b9d8291a73766ce0a44.tar.bz2
libstdc++: Adjust <format> for Clang compatibility [PR107712]
Clang doesn't define __builtin_toupper, so use std::toupper. Also add some (not actually required since C++20) typename keywords to help Clang versions up to and including 15. libstdc++-v3/ChangeLog: PR libstdc++/107712 * include/std/format (__format::__formatter_int::format): Use std::toupper when __builtin_toupper isn't available. (basic_format_arg::handle): Add 'typename'. * include/std/complex (complex<T>): Add 'typename'.
Diffstat (limited to 'libstdc++-v3/include/std/complex')
-rw-r--r--libstdc++-v3/include/std/complex2
1 files changed, 1 insertions, 1 deletions
diff --git a/libstdc++-v3/include/std/complex b/libstdc++-v3/include/std/complex
index 7fed8a7..86d5ca3 100644
--- a/libstdc++-v3/include/std/complex
+++ b/libstdc++-v3/include/std/complex
@@ -1840,7 +1840,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
{
public:
typedef _Tp value_type;
- typedef std::__complex_type<_Tp>::type _ComplexT;
+ typedef typename std::__complex_type<_Tp>::type _ComplexT;
constexpr complex(_ComplexT __z) : _M_value(__z) { }