-
Notifications
You must be signed in to change notification settings - Fork 251
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Can be improved separately if folks want to submit PRs
- Loading branch information
Showing
11 changed files
with
65 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
regression-tests/test-results/clang-12-c++20/pure2-hashable.cpp.execution
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
6440649391998984779 | ||
6443762454025613088 |
60 changes: 30 additions & 30 deletions
60
regression-tests/test-results/gcc-10-c++20/pure2-default-arguments.cpp.output
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,66 +1,66 @@ | ||
In file included from pure2-default-arguments.cpp:7: | ||
../../../include/cpp2util.h:2086:28: error: local variable ‘obj’ may not appear in this context | ||
2086 | template<typename T, std::same_as<std::any> X> | ||
| ^~~ | ||
2086 | } | ||
| ^ | ||
../../../include/cpp2util.h:2047:34: note: in definition of macro ‘CPP2_UFCS_IDENTITY’ | ||
2047 | return false; | ||
2047 | ) | ||
| ^ | ||
../../../include/cpp2util.h:2086:15: note: in expansion of macro ‘CPP2_FORWARD’ | ||
2086 | template<typename T, std::same_as<std::any> X> | ||
| ^~~~~~~~~~~~ | ||
2086 | } | ||
| ^ | ||
../../../include/cpp2util.h:2107:22: note: in expansion of macro ‘CPP2_UFCS_CONSTRAINT_ARG’ | ||
2107 | } | ||
| ^ | ||
2107 | if constexpr (valid_predicate<decltype(value), decltype(x)>) { | ||
| ^~~~~~~~~~~~~~~~~~~~~~~~ | ||
../../../include/cpp2util.h:2137:59: note: in expansion of macro ‘CPP2_UFCS_’ | ||
2137 | return false; | ||
| ^ | ||
2137 | template<typename T, specialization_of_template<std::optional> X> | ||
| ^~~~~~~ | ||
pure2-default-arguments.cpp2:6:22: note: in expansion of macro ‘CPP2_UFCS_NONLOCAL’ | ||
../../../include/cpp2util.h:2086:92: error: local variable ‘params’ may not appear in this context | ||
2086 | template<typename T, std::same_as<std::any> X> | ||
2086 | } | ||
| ^ | ||
../../../include/cpp2util.h:2047:34: note: in definition of macro ‘CPP2_UFCS_IDENTITY’ | ||
2047 | return false; | ||
2047 | ) | ||
| ^ | ||
../../../include/cpp2util.h:2086:79: note: in expansion of macro ‘CPP2_FORWARD’ | ||
2086 | template<typename T, std::same_as<std::any> X> | ||
2086 | } | ||
| ^ | ||
../../../include/cpp2util.h:2107:22: note: in expansion of macro ‘CPP2_UFCS_CONSTRAINT_ARG’ | ||
2107 | } | ||
| ^ | ||
2107 | if constexpr (valid_predicate<decltype(value), decltype(x)>) { | ||
| ^~~~~~~~~~~~~~~~~~~~~~~~ | ||
../../../include/cpp2util.h:2137:59: note: in expansion of macro ‘CPP2_UFCS_’ | ||
2137 | return false; | ||
| ^ | ||
2137 | template<typename T, specialization_of_template<std::optional> X> | ||
| ^~~~~~~ | ||
pure2-default-arguments.cpp2:6:22: note: in expansion of macro ‘CPP2_UFCS_NONLOCAL’ | ||
../../../include/cpp2util.h:2087:74: error: local variable ‘obj’ may not appear in this context | ||
2087 | constexpr auto is( X const& x ) -> bool{ | ||
2087 | | ||
| ^ | ||
../../../include/cpp2util.h:2047:34: note: in definition of macro ‘CPP2_UFCS_IDENTITY’ | ||
2047 | return false; | ||
2047 | ) | ||
| ^ | ||
../../../include/cpp2util.h:2087:61: note: in expansion of macro ‘CPP2_FORWARD’ | ||
2087 | constexpr auto is( X const& x ) -> bool{ | ||
2087 | | ||
| ^ | ||
../../../include/cpp2util.h:2107:22: note: in expansion of macro ‘CPP2_UFCS_CONSTRAINT_ARG’ | ||
2107 | } | ||
| ^ | ||
2107 | if constexpr (valid_predicate<decltype(value), decltype(x)>) { | ||
| ^~~~~~~~~~~~~~~~~~~~~~~~ | ||
../../../include/cpp2util.h:2137:59: note: in expansion of macro ‘CPP2_UFCS_’ | ||
2137 | return false; | ||
| ^ | ||
2137 | template<typename T, specialization_of_template<std::optional> X> | ||
| ^~~~~~~ | ||
pure2-default-arguments.cpp2:6:22: note: in expansion of macro ‘CPP2_UFCS_NONLOCAL’ | ||
../../../include/cpp2util.h:2087:93: error: local variable ‘params’ may not appear in this context | ||
2087 | constexpr auto is( X const& x ) -> bool{ | ||
2087 | | ||
| ^ | ||
../../../include/cpp2util.h:2047:34: note: in definition of macro ‘CPP2_UFCS_IDENTITY’ | ||
2047 | return false; | ||
2047 | ) | ||
| ^ | ||
../../../include/cpp2util.h:2087:80: note: in expansion of macro ‘CPP2_FORWARD’ | ||
2087 | constexpr auto is( X const& x ) -> bool{ | ||
2087 | | ||
| ^ | ||
../../../include/cpp2util.h:2107:22: note: in expansion of macro ‘CPP2_UFCS_CONSTRAINT_ARG’ | ||
2107 | } | ||
| ^ | ||
2107 | if constexpr (valid_predicate<decltype(value), decltype(x)>) { | ||
| ^~~~~~~~~~~~~~~~~~~~~~~~ | ||
../../../include/cpp2util.h:2137:59: note: in expansion of macro ‘CPP2_UFCS_’ | ||
2137 | return false; | ||
| ^ | ||
2137 | template<typename T, specialization_of_template<std::optional> X> | ||
| ^~~~~~~ | ||
pure2-default-arguments.cpp2:6:22: note: in expansion of macro ‘CPP2_UFCS_NONLOCAL’ | ||
pure2-default-arguments.cpp2:6:61: error: ‘std::source_location’ has not been declared |
30 changes: 15 additions & 15 deletions
30
regression-tests/test-results/gcc-14-c++2b/mixed-bugfix-for-ufcs-non-local.cpp.output
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,41 @@ | ||
In file included from mixed-bugfix-for-ufcs-non-local.cpp:6: | ||
../../../include/cpp2util.h:2100:1: error: lambda-expression in template parameter type | ||
2100 | return value(x); | ||
2100 | } | ||
| ^ | ||
../../../include/cpp2util.h:2137:59: note: in expansion of macro ‘CPP2_UFCS_’ | ||
2137 | return false; | ||
| ^ | ||
2137 | template<typename T, specialization_of_template<std::optional> X> | ||
| ^~~~~~~ | ||
mixed-bugfix-for-ufcs-non-local.cpp2:13:12: note: in expansion of macro ‘CPP2_UFCS_NONLOCAL’ | ||
mixed-bugfix-for-ufcs-non-local.cpp2:13:36: error: template argument 1 is invalid | ||
../../../include/cpp2util.h:2100:1: error: lambda-expression in template parameter type | ||
2100 | return value(x); | ||
2100 | } | ||
| ^ | ||
../../../include/cpp2util.h:2137:59: note: in expansion of macro ‘CPP2_UFCS_’ | ||
2137 | return false; | ||
| ^ | ||
2137 | template<typename T, specialization_of_template<std::optional> X> | ||
| ^~~~~~~ | ||
mixed-bugfix-for-ufcs-non-local.cpp2:21:12: note: in expansion of macro ‘CPP2_UFCS_NONLOCAL’ | ||
mixed-bugfix-for-ufcs-non-local.cpp2:21:36: error: template argument 1 is invalid | ||
../../../include/cpp2util.h:2100:1: error: lambda-expression in template parameter type | ||
2100 | return value(x); | ||
2100 | } | ||
| ^ | ||
../../../include/cpp2util.h:2137:59: note: in expansion of macro ‘CPP2_UFCS_’ | ||
2137 | return false; | ||
| ^ | ||
2137 | template<typename T, specialization_of_template<std::optional> X> | ||
| ^~~~~~~ | ||
mixed-bugfix-for-ufcs-non-local.cpp2:31:12: note: in expansion of macro ‘CPP2_UFCS_NONLOCAL’ | ||
mixed-bugfix-for-ufcs-non-local.cpp2:31:36: error: template argument 1 is invalid | ||
../../../include/cpp2util.h:2100:1: error: lambda-expression in template parameter type | ||
2100 | return value(x); | ||
2100 | } | ||
| ^ | ||
../../../include/cpp2util.h:2137:59: note: in expansion of macro ‘CPP2_UFCS_’ | ||
2137 | return false; | ||
| ^ | ||
2137 | template<typename T, specialization_of_template<std::optional> X> | ||
| ^~~~~~~ | ||
mixed-bugfix-for-ufcs-non-local.cpp2:33:12: note: in expansion of macro ‘CPP2_UFCS_NONLOCAL’ | ||
mixed-bugfix-for-ufcs-non-local.cpp2:33:36: error: template argument 1 is invalid | ||
../../../include/cpp2util.h:2100:1: error: lambda-expression in template parameter type | ||
2100 | return value(x); | ||
2100 | } | ||
| ^ | ||
../../../include/cpp2util.h:2137:59: note: in expansion of macro ‘CPP2_UFCS_’ | ||
2137 | return false; | ||
| ^ | ||
2137 | template<typename T, specialization_of_template<std::optional> X> | ||
| ^~~~~~~ | ||
mixed-bugfix-for-ufcs-non-local.cpp2:21:12: note: in expansion of macro ‘CPP2_UFCS_NONLOCAL’ | ||
mixed-bugfix-for-ufcs-non-local.cpp2:21:36: error: template argument 1 is invalid |
2 changes: 1 addition & 1 deletion
2
regression-tests/test-results/gcc-14-c++2b/pure2-hashable.cpp.execution
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
6440649391998984779 | ||
6443762454025613088 |
2 changes: 1 addition & 1 deletion
2
regression-tests/test-results/msvc-2022-c++latest/pure2-hashable.cpp.execution
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
13958440649017415620 | ||
13929407477532509065 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
"9930:1349" | ||
"9930:1408" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters