-
Notifications
You must be signed in to change notification settings - Fork 249
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] Parameter direction for template parameter is ignored #425
Comments
Possibly related: I'm using library (flecs) with API like
And haven't found way to specify that
|
Seems like a bug: https://cpp2.godbolt.org/z/Tx8e9KfKc. |
Ok, I do later, what I mean by related is, should I be able to put |
I don't think that can work. |
Yes, this is by design -- I don't know what it would mean. I should probably emit a diagnostic for it though. Thanks! |
From `[[kind group: expression]]` to `kind<group>(expression)` Sorry for the breaking change to anyone who has been writing contacts. I'm trying to support gaining usage experience with P2961 Reference link: https://wg21.link/p2961r1
Title: Parameter direction for template parameter is ignored.
Minimal reproducer (https://cpp2.godbolt.org/z/M1jxGdeqe):
Commands:
cppfront -clean-cpp1 main.cpp2 clang++17 -std=c++2b -stdlib=libc++ -lc++abi -I . main.cpp
Expected result:
For the
: type
case, a diagnostic.For the
: _
case, adherence to the specified parameter direction.Actual result and error:
Cpp2 lowered to Cpp1.
The text was updated successfully, but these errors were encountered: