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

Reply via email to