Re: [PATCH] c++: parenthesized -> resolving to static member [PR98283]

2023-05-05 Thread Jason Merrill via Gcc-patches
On 5/5/23 14:30, Patrick Palka wrote: On Fri, 5 May 2023, Patrick Palka wrote: Here we're neglecting to propagate parenthesized-ness when the member access expression (this->m) resolves to a static member (and thus finish_class_member_access_expr yields a VAR_DECL instead of a COMPONENT_REF).

Re: [PATCH] c++: parenthesized -> resolving to static member [PR98283]

2023-05-05 Thread Patrick Palka via Gcc-patches
On Fri, 5 May 2023, Patrick Palka wrote: > Here we're neglecting to propagate parenthesized-ness when the member > access expression (this->m) resolves to a static member (and thus > finish_class_member_access_expr yields a VAR_DECL instead of a > COMPONENT_REF). > > Bootstrapped and regtested on

[PATCH] c++: parenthesized -> resolving to static member [PR98283]

2023-05-05 Thread Patrick Palka via Gcc-patches
Here we're neglecting to propagate parenthesized-ness when the member access expression (this->m) resolves to a static member (and thus finish_class_member_access_expr yields a VAR_DECL instead of a COMPONENT_REF). Bootstrapped and regtested on x86_64-pc-linux-gnu, does look OK for trunk?