[Bug c++/40075] New: deprecated("xxx") doesn't work on function parameter
hjl dot tools at gmail dot com
gcc-bugzilla@gcc.gnu.org
Fri May 8 21:11:00 GMT 2009
deprecated("xxx") doesn't work on function parameter with C++:
[hjl@gnu-6 gcc]$ cat /tmp/foo.i
typedef int INT2 __attribute__((deprecated("Please avoid INT2")));
int f5(INT2 x);
[hjl@gnu-6 gcc]$ ./xgcc -B./ -S /tmp/foo.i
/tmp/foo.i:2: warning: ÂINT2Â is deprecated: Please avoid INT2
[hjl@gnu-6 gcc]$ ./g++ -B./ -S /tmp/foo.i
/tmp/foo.i:2: warning: ÂINT2Â is deprecated
[hjl@gnu-6 gcc]$
--
Summary: deprecated("xxx") doesn't work on function parameter
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=40075
More information about the Gcc-bugs
mailing list