From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19917 invoked by alias); 8 May 2009 23:15:22 -0000 Received: (qmail 19699 invoked by uid 48); 8 May 2009 23:15:09 -0000 Date: Fri, 08 May 2009 23:15:00 -0000 Message-ID: <20090508231509.19698.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c++/40075] deprecated("xxx") doesn't work on function parameter In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "hjl dot tools at gmail dot com" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2009-05/txt/msg00731.txt.bz2 ------- Comment #1 from hjl dot tools at gmail dot com 2009-05-08 23:15 ------- Another difference between C and C++: [hjl@gnu-6 tmp]$ cat bad.i typedef int INT2 __attribute__((deprecated)); int f5(INT2 x); int f6(INT2 x) __attribute__((deprecated)); [hjl@gnu-6 tmp]$ gcc -S bad.i bad.i:2: warning: ‘INT2’ is deprecated bad.i:3: warning: ‘INT2’ is deprecated [hjl@gnu-6 tmp]$ g++ -S bad.i bad.i:2: warning: ‘INT2’ is deprecated (declared at bad.i:1) [hjl@gnu-6 tmp]$ -- hjl dot tools at gmail dot com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jason at redhat dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40075