This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/31367] New: Should not warn about use of deprecated type in deprecated struct
- From: "ian at airs dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Mar 2007 18:37:22 -0000
- Subject: [Bug c++/31367] New: Should not warn about use of deprecated type in deprecated struct
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
When a deprecated type is used in a struct which is itself deprecated, we
should not warn. That would be consistent with the current behaviour of not
warning about applying a deprecated type to a deprecated variable.
Test case:
typedef __attribute__((deprecated)) int foo;
typedef __attribute__((deprecated)) struct bar {
foo baz;
} bop;
With current mainline this gives
foo.cc:3: warning: ?foo? is deprecated
It should not give any warning.
--
Summary: Should not warn about use of deprecated type in
deprecated struct
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: ian at airs dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31367