https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43778
Martin Sebor changed:
What|Removed |Added
Keywords||diagnostic
--- Comment #2 from rguenth at gcc dot gnu dot org 2010-04-18 18:32 ---
warnings should be issued when a
deprecated entity is used and not when that deprecation is declared.
it is not that deprecation that is declared in your examples but a
deprecation that is declared.
--
--- Comment #3 from iains at gcc dot gnu dot org 2010-04-18 19:03 ---
(In reply to comment #2)
warnings should be issued when a
deprecated entity is used and not when that deprecation is declared.
it is not that deprecation that is declared in your examples but a
deprecation that
--- 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;