This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/43778] C/C++ __attribute__((deprecated)) does not appear to wrap declarations as implied from the doc.
- From: "iains at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Apr 2010 13:16:46 -0000
- Subject: [Bug c/43778] C/C++ __attribute__((deprecated)) does not appear to wrap declarations as implied from the doc.
- References: <bug-43778-19002@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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