This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/31367] Should not warn about use of deprecated type in deprecated struct
- From: "david at luyer dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Mar 2007 20:27:06 -0000
- Subject: [Bug c/31367] Should not warn about use of deprecated type in deprecated struct
- References: <bug-31367-1313@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from david at luyer dot net 2007-03-26 21:27 -------
Two other related cases which generate warnings. I'm not sure
which is the correct syntax to mark a field deprecated, but
both are currently generating warnings, and marking a field
which uses a deprecated type as deprecated would be another
case which should not generate a warning.
=============================
typedef __attribute__((deprecated)) int foo;
typedef struct bar {
foo __attribute__((deprecated)) baz;
} bop;
=============================
typedef __attribute__((deprecated)) int foo;
typedef struct bar {
__attribute__((deprecated)) foo baz;
} bop;
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31367