[Bug c++/58305] Deprecation warning for class not raised when not assigning to a variable

2013-09-04 Thread languitar at semipol dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58305 --- Comment #7 from Johannes Wienke --- Thanks!

[Bug c++/58305] Deprecation warning for class not raised when not assigning to a variable

2013-09-03 Thread languitar at semipol dot de
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.

[Bug c++/58305] New: Deprecation warning for class not raised when not assigning to a variable

2013-09-03 Thread languitar at semipol dot de
: 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