https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89875
Bug ID: 89875 Summary: invalid typeof reference to a member of an incomplete struct accepted at function scope Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- The following ill-formed test case modified from bug 66548 is still accepted by GCC 9: $ cat u.C && gcc -S -Wall -Wextra u.C void f () { __typeof__ (Meow.purr) d; } u.C: In function ‘void f()’: u.C:5:26: warning: unused variable ‘d’ [-Wunused-variable] 5 | __typeof__ (Meow.purr) d; | ^