[Bug c++/26216] New: deprecated function warning is emitted twice

dpatel at apple dot com gcc-bugzilla@gcc.gnu.org
Sat Feb 11 01:57:00 GMT 2006


deprecated function warning is emitted twice

For example,
--- a.cc ---
int f() __attribute__((deprecated));

int f() { return 0; }

int main()
{
        return f();
}
---
$ /Volumes/src/clean/gcc.trunk.install/bin/gcc -c a.cc
a.cc: In function 'int main()':
a.cc:7: warning: 'f' is deprecated (declared at a.cc:3)
a.cc:7: warning: 'f' is deprecated (declared at a.cc:3)


-- 
           Summary: deprecated function warning is emitted twice
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dpatel at apple dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26216



More information about the Gcc-bugs mailing list