File tree 2 files changed +2
-11
lines changed
regression-tests/test-results
2 files changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -529,7 +529,7 @@ auto issue_850() -> void{
529
529
auto issue_857::n () && -> void{}
530
530
auto issue_857::o0 () && -> void { std::move (*this ).n (); }
531
531
auto issue_857::o1 () && -> void { CPP2_UFCS (n)(std::move ((*this ))); }
532
- auto issue_857::o2 () && -> void { CPP2_UFCS (n)(0 ); }
532
+ auto issue_857::o2 () && -> void { CPP2_UFCS (std::move (* this ). n )(0 ); }
533
533
auto issue_857::o3 () && -> void { std::move (*this ).n (0 ); }
534
534
auto issue_857::o4 () && -> void { n (std::move ((*this ))); }
535
535
auto issue_857::p0 () && -> void{
Original file line number Diff line number Diff line change @@ -3220,18 +3220,9 @@ class cppfront
3220
3220
&& !lookup_finds_variable_with_placeholder_type_under_initialization (*i->id_expr )
3221
3221
)
3222
3222
{
3223
- auto is_type_scope_function = lookup_finds_type_scope_function (*i->id_expr );
3224
- if (is_type_scope_function) {
3225
- in_non_rvalue_context.push_back (true );
3226
- }
3227
-
3228
3223
// The function name is the argument to the macro
3229
3224
auto funcname = print_to_string (*i->id_expr );
3230
3225
3231
- if (is_type_scope_function) {
3232
- in_non_rvalue_context.pop_back ();
3233
- }
3234
-
3235
3226
// First, build the UFCS macro name
3236
3227
3237
3228
auto ufcs_string = std::string (" CPP2_UFCS" );
@@ -3288,7 +3279,7 @@ class cppfront
3288
3279
// by leveraging the last use only in the non-member branch
3289
3280
if (auto last_use = is_definite_last_use (i->id_expr ->get_token ());
3290
3281
last_use
3291
- && !is_type_scope_function
3282
+ && !lookup_finds_type_scope_function (*i-> id_expr )
3292
3283
)
3293
3284
{
3294
3285
if (last_use->is_forward ) {
You can’t perform that action at this time.
0 commit comments