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.

Reply via email to