http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58305
--- Comment #7 from Johannes Wienke ---
Thanks!
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58305
--- Comment #2 from Johannes Wienke ---
class ToBeDeprecated {
} __attribute__ ((deprecated ("deprecated!")));
int main() {
ToBeDeprecated();
ToBeDeprecated x;
return 0;
}
The first use does not issue the warning, the second does.
: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: languitar at semipol dot de
Deprecation warnings for classes do not work in case the class is used but not
assigned to a variable. The following code snippet illustrates the error