[PATCH 07/10] c++: rename __is_void defined in pr46567.C to ____is_void

Ken Matsui kmatsui@cs.washington.edu
Sun Mar 26 04:30:29 GMT 2023


This patch renames __is_void defined in pr46567.C to ____is_void to
avoid conflicts with the __is_void built-in trait to be implemented.

gcc/testsuite/ChangeLog:

	* g++.dg/tm/pr46567.C (__is_void): Rename to ...
	(____is_void): ... this.

Signed-off-by: Ken Matsui <kmatsui@cs.washington.edu>
---
 gcc/testsuite/g++.dg/tm/pr46567.C | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/gcc/testsuite/g++.dg/tm/pr46567.C b/gcc/testsuite/g++.dg/tm/pr46567.C
index 6d791484448..e689e293bd4 100644
--- a/gcc/testsuite/g++.dg/tm/pr46567.C
+++ b/gcc/testsuite/g++.dg/tm/pr46567.C
@@ -72,13 +72,13 @@ namespace std __attribute__ ((__visibility__ ("default"))) {
       typedef __true_type __type;
     };
   template<typename _Tp>
-    struct __is_void
+    struct ____is_void
     {
       enum { __value = 0 };
       typedef __false_type __type;
     };
   template<>
-    struct __is_void<void>
+    struct ____is_void<void>
     {
       enum { __value = 1 };
       typedef __true_type __type;
@@ -222,7 +222,7 @@ namespace std __attribute__ ((__visibility__ ("default"))) {
     { };
   template<typename _Tp>
     struct __is_fundamental
-    : public __traitor<__is_void<_Tp>, __is_arithmetic<_Tp> >
+    : public __traitor<____is_void<_Tp>, __is_arithmetic<_Tp> >
     { };
   template<typename _Tp>
     struct __is_scalar
-- 
2.40.0



More information about the Gcc-patches mailing list