C++ compiler will issue the duplicated deprecated message: [...@gnu-6 gcc]$ cat /tmp/fun.i int f1 () __attribute__((deprecated));
int foo () { return f1 (); } [...@gnu-6 gcc]$ ./xgcc -B./ -S /tmp/fun.i /tmp/fun.i: In function foo: /tmp/fun.i:6: warning: f1 is deprecated (declared at /tmp/fun.i:1) [...@gnu-6 gcc]$ ./g++ -B./ -S /tmp/fun.i /tmp/fun.i: In function int foo(): /tmp/fun.i:6: warning: int f1() is deprecated (declared at /tmp/fun.i:1) /tmp/fun.i:6: warning: int f1() is deprecated (declared at /tmp/fun.i:1) [...@gnu-6 gcc]$ -- Summary: Duplicated deprecated message Product: gcc Version: 4.5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: hjl dot tools at gmail dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40077