This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/11067] New: [3.3/3.4 regression] Strange warning with abstract virtual inline function


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]