public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/40075]  New: deprecated("xxx") doesn't work on function parameter
@ 2009-05-08 21:11 hjl dot tools at gmail dot com
  2009-05-08 23:15 ` [Bug c++/40075] " hjl dot tools at gmail dot com
  2009-05-11 16:27 ` hjl dot tools at gmail dot com
  0 siblings, 2 replies; 6+ messages in thread
From: hjl dot tools at gmail dot com @ 2009-05-08 21:11 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 786 bytes --]

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


^ permalink raw reply	[flat|nested] 6+ messages in thread
[parent not found: <bug-40075-4@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2021-08-11 20:51 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-08 21:11 [Bug c++/40075] New: deprecated("xxx") doesn't work on function parameter hjl dot tools at gmail dot com
2009-05-08 23:15 ` [Bug c++/40075] " hjl dot tools at gmail dot com
2009-05-11 16:27 ` hjl dot tools at gmail dot com
     [not found] <bug-40075-4@http.gcc.gnu.org/bugzilla/>
2013-09-05 18:37 ` paolo.carlini at oracle dot com
2021-08-11 20:49 ` pinskia at gcc dot gnu.org
2021-08-11 20:51 ` pinskia at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).