forked from hsutter/cppfront
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add warnings for names reserved for metafunction implementations
Closes hsutter#720
- Loading branch information
Showing
15 changed files
with
297 additions
and
207 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
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,7 +0,0 @@ | ||
pure2-print.cpp2:52:80: warning: unused parameter 't' [-Wunused-parameter] | ||
template<typename T> [[nodiscard]] auto outer::mytype::values(T const& t) const& -> values_ret{ | ||
^ | ||
pure2-print.cpp2:63:53: warning: unused parameter 'x' [-Wunused-parameter] | ||
auto outer::mytype::variadic(auto const& ...x) -> void{} | ||
^ | ||
2 warnings generated. | ||
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,10 +1,17 @@ | ||
In file included from pure2-print.cpp:7: | ||
../../../include/cpp2util.h:10005:33: error: expected unqualified-id before ‘static_assert’ | ||
pure2-print.cpp2:7:1: note: in expansion of macro ‘CPP2_REQUIRES_’ | ||
pure2-print.cpp2:63:59: error: expected ‘;’ at end of member declaration | ||
In file included from pure2-print.cpp:7: | ||
../../../include/cpp2util.h:10005:47: error: static assertion failed: GCC 11 or higher is required to support variables and type-scope functions that have a 'requires' clause. This includes a type-scope 'forward' parameter of non-wildcard type, such as 'func: (this, forward s: std::string)', which relies on being able to add a 'requires' clause - in that case, use 'forward s: _' instead if you need the result to compile with GCC 10. | ||
pure2-print.cpp2:64:1: note: in expansion of macro ‘CPP2_REQUIRES_’ | ||
../../../include/cpp2util.h:10005:33: error: expected initializer before ‘static_assert’ | ||
pure2-print.cpp2:89:1: note: in expansion of macro ‘CPP2_REQUIRES_’ | ||
pure2-print.cpp2:6:29: error: ‘constexpr const T outer::object_alias’ is not a static data member of ‘class outer’ | ||
pure2-print.cpp2:6:36: error: template definition of non-template ‘constexpr const T outer::object_alias’ | ||
pure2-print.cpp2:63:14: error: no declaration matches ‘void outer::mytype::variadic(const auto:89& ...) requires (is_convertible_v<typename std::remove_cv<typename std::remove_reference<decltype(outer::mytype::variadic::x)>::type>::type, int> && ...)’ | ||
pure2-print.cpp2:63:29: note: candidate is: ‘template<class ... auto:80> static void outer::mytype::variadic(const auto:80& ...)’ | ||
pure2-print.cpp2:8:19: note: ‘class outer::mytype’ defined here | ||
pure2-print.cpp2:88:37: error: no declaration matches ‘void outer::print(std::ostream&, const Args& ...) requires cpp2::cmp_greater_eq(sizeof (Args)..., 0)’ | ||
pure2-print.cpp2:88:37: note: no functions named ‘void outer::print(std::ostream&, const Args& ...) requires cpp2::cmp_greater_eq(sizeof (Args)..., 0)’ | ||
pure2-print.cpp2:4:7: note: ‘class outer’ defined here |
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
Oops, something went wrong.