This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/11067] New: [3.3/3.4 regression] Strange warning with abstract virtual inline function
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Jun 2003 18:19:38 -0000
- Subject: [Bug c++/11067] New: [3.3/3.4 regression] Strange warning with abstract virtual inline function
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11067
Summary: [3.3/3.4 regression] Strange warning with abstract
virtual inline function
Product: gcc
Version: 3.3.1
Status: UNCONFIRMED
Keywords: diagnostic
Severity: normal
Priority: P4
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: reichelt@gcc.gnu.org
CC: gcc-bugs@gcc.gnu.org
GCC host triplet: i686-pc-linux-gnu
Compiling the following code snippet, I get a strange warning:
-------------------------------------------------
struct A
{
virtual inline void foo() const=0;
void bar() { foo(); }
};
-------------------------------------------------
The warning reads:
warn.cc:3: warning: inline function `virtual void A::foo() const' used but
never defined
The keyword "inline" doesn't make much sense, but the warning is confusing IMHO.
The warning was introduced in gcc 3.3, so I rate this as a regression.
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.