[Bug c++/16370] __attribute__((deprecated)) not useful on classes, and ugly function name listed for deperecation warnings on constructor

ian at airs dot com gcc-bugzilla@gcc.gnu.org
Wed Mar 21 14:39:00 GMT 2007



------- 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



More information about the Gcc-bugs mailing list