------- Comment #1 from iains at gcc dot gnu dot org 2010-04-17 13:16 ------- similarly.
it would seem that: typedef int INT1 __attribute__((deprecated)); struct __attribute__((deprecated)) s_rec { int x; INT1 y ; /* { dg-bogus "'INT1' is deprecated" "" } */ } ; or struct s_rec { int x; INT1 y ; /* { dg-bogus "'INT1' is deprecated" "" } */ } __attribute__((deprecated)); but this is right ... struct s_rec { int x; INT1 y ; /* { dg-warning "'INT1' is deprecated" "" } */ } some_var __attribute__((deprecated)); -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43778