https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92954

            Bug ID: 92954
           Summary: -Wshadow does not report when a struct member shadows
                    a global
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Keywords: diagnostic
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: pinskia at gcc dot gnu.org
  Target Milestone: ---

Take:
int t;
struct g{
int t;
void h(void)
{
t++;
}
};
---- CUT ---
I would have thought there would be a warning with -Wshadow but there is not.

Reply via email to