https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64875

            Bug ID: 64875
           Summary: -Winline does not report C++ methods
           Product: gcc
           Version: 4.8.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: daniel.gutson at tallertechnologies dot com

The following code misses the warning:

#include <iostream>

struct PP
{
    inline void m();
};

int main()
{
    PP pp;
    pp.m();
}

inline void PP::m()
{
    std::cout << "hola" << std::endl;
}

Invoke:
  g++ -Wall -Wextra -pedantic -ggdb3 -std=c++11 -Winline winline.cpp
No warnings emitted.

However:

objdump -dC ./a.out |grep "PP"
  40086c:    e8 59 00 00 00           callq  4008ca <PP::m()>
00000000004008ca <PP::m()>:

If no one is available, assign this to me (though I'm not sure when I will have
time to address this).

Reply via email to