This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/40077] New: Duplicated deprecated message


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]