[Bug c++/58305] Deprecation warning for class not raised when not assigning to a variable
languitar at semipol dot de
gcc-bugzilla@gcc.gnu.org
Tue Sep 3 12:21:00 GMT 2013
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58305
--- Comment #2 from Johannes Wienke <languitar at semipol dot de> ---
class ToBeDeprecated {
} __attribute__ ((deprecated ("deprecated!")));
int main() {
ToBeDeprecated();
ToBeDeprecated x;
return 0;
}
The first use does not issue the warning, the second does.
More information about the Gcc-bugs
mailing list