[Bug c++/48656] New: [C++0x] cannot call member function without object
harald at gigawatt dot nl
gcc-bugzilla@gcc.gnu.org
Sun Apr 17 21:10:00 GMT 2011
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: unassigned@gcc.gnu.org
ReportedBy: harald@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
More information about the Gcc-bugs
mailing list