This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/65974] Bogus deprecated-declarations warnings for inline definitions of deprecated virtual methods
- From: "neil at fnxweb dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 06 Jul 2015 07:35:54 +0000
- Subject: [Bug c++/65974] Bogus deprecated-declarations warnings for inline definitions of deprecated virtual methods
- Auto-submitted: auto-generated
- References: <bug-65974-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65974
Neil Bird <neil at fnxweb dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |neil at fnxweb dot com
--- Comment #1 from Neil Bird <neil at fnxweb dot com> ---
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)