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

2017-03-17 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43778 Martin Sebor changed: What|Removed |Added Keywords||diagnostic

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

2010-04-18 Thread rguenth at gcc dot gnu dot org
--- 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. --

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

2010-04-18 Thread iains at gcc dot gnu dot org
--- 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

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

2010-04-17 Thread iains 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;