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
thanks for reporting this interesting issue. I think you uncovered a bigger issue with ImplicitCastExprs in general. With your example, I think an ImplicitCastExpr with NoOp and an xvalue needs to be shown. I'm running some tests and try to figure out how to handle it correctly.
Consider the following code:
in
return
statement constructor from rvalue reference is called (https://gcc.godbolt.org/z/KeWb4e). This is due to https://en.cppreference.com/w/cpp/language/return "Automatic move from local variables and parameters" part. This also could be seen in AST.However, the output is (for the
foo()
):Here lvalue refeference constructor is called.
The text was updated successfully, but these errors were encountered: