Re: [PATCH] c++: value category of compound object expr [PR104173]

2022-01-23 Thread Jason Merrill via Gcc-patches
On 1/22/22 16:24, Patrick Palka wrote: Here the call to the &&-qualified toLower() is incorrectly rejected because the object expression is deemed to be an lvalue, even though it's really a prvalue. The object expression, instance()->applicationName(), is expressed as an INDIRECT_REF of a COMPOU

[PATCH] c++: value category of compound object expr [PR104173]

2022-01-22 Thread Patrick Palka via Gcc-patches
Here the call to the &&-qualified toLower() is incorrectly rejected because the object expression is deemed to be an lvalue, even though it's really a prvalue. The object expression, instance()->applicationName(), is expressed as an INDIRECT_REF of a COMPOUND_EXPR *(*instance ();, &TARGET_EXPR