http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48656

           Summary: [C++0x] cannot call member function without object
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: har...@gigawatt.nl


Very similar to bug 47174:

struct A {
 int f();
 int f(int);
};
template <typename> struct B : A
{
};
template <typename T> struct C : B<T>
{
 void g() {
   A::f();
 }
};

This still fails with GCC 4.6.0 and -std=c++0x:
a.ii: In member function ‘void C<T>::g()’:
a.ii:11:11: error: cannot call member function ‘int A::f()’ without object

Reply via email to