When a deprecated type is used in a struct which is itself deprecated, we should not warn. That would be consistent with the current behaviour of not warning about applying a deprecated type to a deprecated variable.
Test case: typedef __attribute__((deprecated)) int foo; typedef __attribute__((deprecated)) struct bar { foo baz; } bop; With current mainline this gives foo.cc:3: warning: foo is deprecated It should not give any warning. -- Summary: Should not warn about use of deprecated type in deprecated struct Product: gcc Version: 4.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: ian at airs dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31367