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;};
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;};