This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/31367] New: Should not warn about use of deprecated type in deprecated struct


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]