From 945e86ddaa6cc7251d7bb57be8bb65f182cd3a0c Mon Sep 17 00:00:00 2001
From: Jonathan Wakely <jwakely@redhat.com>
Date: Fri, 18 Nov 2022 21:17:51 +0000
Subject: [PATCH] libstdc++: Fix one more malformed requires-clause [PR107649]

libstdc++-v3/ChangeLog:

	PR libstdc++/107649
	* include/std/complex (__complex_proj): Fix requires-clause.
---
 libstdc++-v3/include/std/complex | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libstdc++-v3/include/std/complex b/libstdc++-v3/include/std/complex
index 86d5ca3c3e12..912adb78aaa9 100644
--- a/libstdc++-v3/include/std/complex
+++ b/libstdc++-v3/include/std/complex
@@ -2528,7 +2528,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
 #endif
 
   template<typename _Tp>
-    requires(__complex_type<_Tp>::type)
+    requires requires { typename __complex_type<_Tp>::type; }
     inline complex<_Tp>
     __complex_proj(const complex<_Tp>& __z)
     { return __complex_proj(__z.__rep()); }
-- 
GitLab