public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/31367]  New: Should not warn about use of deprecated type in deprecated struct
@ 2007-03-26 18:39 ian at airs dot com
  2007-03-26 18:43 ` [Bug c/31367] " pinskia at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: ian at airs dot com @ 2007-03-26 18:39 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 867 bytes --]

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-05-18  7:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-26 18:39 [Bug c++/31367] New: Should not warn about use of deprecated type in deprecated struct ian at airs dot com
2007-03-26 18:43 ` [Bug c/31367] " pinskia at gcc dot gnu dot org
2007-03-26 20:27 ` david at luyer dot net
2007-03-26 23:57 ` spark at gcc dot gnu dot org
2010-05-18  7:15 ` ethouris at gmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).