Commit 77d7c64b by Jason Merrill

new

From-SVN: r21654
parent f6258172
template<class T>
class A {
public:
void f() { }
};
class B : public A<int> {
public:
void f();
};
int main()
{
B b;
B& b1 = b;
b1.A<int>::f();
}
// Build don't link:
template <class X> struct A { };
struct A<int> { int foo (); };
int A<int>::foo () { return 37; }
// Build don't link:
class B { };
template <class x, int b> class X : public B { int y[b]; };
// Test to make sure that implicit typename doesn't break name binding rules.
// Special g++ Options: -w
typedef double A;
template<class T> class B {
typedef char A;
};
template<class T> struct X : B<T> {
A a;
};
int main()
{
X<char*> x;
return sizeof (x.a) != sizeof (double);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment