You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to work around this by adding parentheses.
It simply lowers forward without std::.
I suppose it's due to commit c39a94c (#77). (forward (r$)); lowers to return forward(_0); (https://cpp2.godbolt.org/z/YTP8vd61K).
Expected result
Diagnostic, probably disallowing forward with capture
This could work with std::forward_like<decltype(this)> semantics (given 4bd0c04#commitcomment-133309652): :(forward this) (forward c$).
Activity
realgdman commentedon May 10, 2023
Probably related:
x := (forward T<int>());assert on previous line.
cppfront: source/cppfront.cpp:2711: void cpp2::cppfront::emit(cpp2::postfix_expression_node &, bool): Assertion `n.expr->get_token()' failed.
JohelEGP commentedon Jun 2, 2023
Resolving #408 might happen to fix this.
JohelEGP commentedon Aug 6, 2023
This fails with the same error (https://cpp2.godbolt.org/z/49jcdPja6):
JohelEGP commentedon Nov 29, 2023
I tried to work around this by adding parentheses.
It simply lowers
forwardwithoutstd::.I suppose it's due to commit c39a94c (#77).
(forward (r$));lowers toreturn forward(_0);(https://cpp2.godbolt.org/z/YTP8vd61K).This could work with
std::forward_like<decltype(this)>semantics (given 4bd0c04#commitcomment-133309652)::(forward this) (forward c$).