This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/43778] C/C++ __attribute__((deprecated)) does not appear to wrap declarations as implied from the doc.



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]