This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/40077] New: Duplicated deprecated message
- From: "hjl dot tools at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 May 2009 22:20:18 -0000
- Subject: [Bug c++/40077] New: Duplicated deprecated message
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
C++ compiler will issue the duplicated deprecated message:
[hjl@gnu-6 gcc]$ cat /tmp/fun.i
int f1 () __attribute__((deprecated));
int
foo ()
{
return f1 ();
}
[hjl@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)
[hjl@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)
[hjl@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