Ok, sorry. I'll ask it on gcc-help.
Nick
On Wed, Sep 29, 2021 at 1:35 PM, Jonathan Wakely
wrote: On Wed, 29 Sept 2021 at 21:34, Nick Savoiu via Gcc
wrote:
>
> Should GCC report shadowing on 'valid' for this code?
> Nick
>
> struct S1{ bool valid;};
> struct S2 : public S1{ bool val
On Wed, 29 Sept 2021 at 21:34, Nick Savoiu via Gcc wrote:
>
> Should GCC report shadowing on 'valid' for this code?
> Nick
>
> struct S1{bool valid;};
> struct S2 : public S1{bool valid;};
> struct S3 : public S2{bool valid;};
This question belongs on the gcc-help list, not here.
IMH
Should GCC report shadowing on 'valid' for this code?
Nick
struct S1{bool valid;};
struct S2 : public S1{bool valid;};
struct S3 : public S2{bool valid;};