[Bug c++/31367] New: Should not warn about use of deprecated type in deprecated struct
ian at airs dot com
gcc-bugzilla@gcc.gnu.org
Mon Mar 26 18:39:00 GMT 2007
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
More information about the Gcc-bugs
mailing list