-
Notifications
You must be signed in to change notification settings - Fork 260
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Can't pass dependent type template argument #727
Comments
It also seems that it is not possible to declare it in any working way current:
neither
|
I'm always going back and forth between these issues.
In fact, this issue is linked there, but discussions don't leave tracks on issues. |
With the fix above, It would allow me to go from compound_addition_with: <T, U> concept = // clang-format off
addition_with<T, U> &&
requires(inout l: T, d: U) {
- { l += d } is std::same_as<decltype(l)>;
+ { l += d } is std::same_as<cpp1_ref<T>>; to compound_addition_with: <T, U> concept = // clang-format off
addition_with<T, U> &&
requires(inout l: T, d: U) {
- { l += d } is std::same_as<cpp1_ref<T>>;
+ { l += d } is std::same_as<T&>; |
Title: Can't pass dependent type template argument.
Minimal reproducer (https://cpp2.godbolt.org/z/W1dKeeKso):
Commands:
cppfront main.cpp2 clang++18 -std=c++23 -stdlib=libc++ -lc++abi -pedantic-errors -Wall -Wextra -Wconversion -Werror=unused-result -I . main.cpp
Expected result:
std::vector<typename T::value_type>
.Actual result and error:
std::vector<T::value_type>
.Cpp2 lowered to Cpp1:
Output:
See also:
The text was updated successfully, but these errors were encountered: