This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/16370] __attribute__((deprecated)) not useful on classes, and ugly function name listed for deperecation warnings on constructor
- From: "ian at airs dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Mar 2007 14:39:14 -0000
- Subject: [Bug c++/16370] __attribute__((deprecated)) not useful on classes, and ugly function name listed for deperecation warnings on constructor
- References: <bug-16370-1258@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from ian at airs dot com 2007-03-21 14:39 -------
With current mainline, I get no warning for this:
struct Foo { int i; } __attribute__ ((deprecated));
void foo() { Foo f; }
but I do get a warning for this:
struct Foo { int i; } __attribute__ ((deprecated));
void foo() { struct Foo f; }
The only different is the "struct" keyword. That is bizarre.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16370