From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 57945 invoked by alias); 6 Jul 2015 07:35:59 -0000 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 Received: (qmail 57896 invoked by uid 48); 6 Jul 2015 07:35:56 -0000 From: "neil at fnxweb dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/65974] Bogus deprecated-declarations warnings for inline definitions of deprecated virtual methods Date: Mon, 06 Jul 2015 07:35:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 5.1.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: neil at fnxweb dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-07/txt/msg00413.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65974 Neil Bird changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |neil at fnxweb dot com --- Comment #1 from Neil Bird --- I am also seeing this, although I don't have to put anything inline. When compiling C++, I get a warning flagged at the end of each class's .cpp for every member declared deprecated in the header, even if it's not used (the bodies for those routines being in the .cpp). # Scientific Linux 6.4, 32-bit $ gcc51 -v Using built-in specs. COLLECT_GCC=gcc51 COLLECT_LTO_WRAPPER=/opt/libexec/gcc/i686-pc-linux-gnu/5.1.0/lto-wrapper Target: i686-pc-linux-gnu Configured with: ../gcc-5.1.0/configure --prefix=/opt --program-suffix=51 --enable-languages=c,c++ --with-isl=/opt Thread model: posix gcc version 5.1.0 (GCC)