blob: d91774c76fc52be512fa3b50174f54f2507368d2 [file] [log] [blame]
// { dg-do assemble }
class Base {
public:
class Bar { public: virtual ~Bar() {} };
};
class Derived : public Base {
public:
class Bar : public Base::Bar {};
};
template <class T>
struct XYZ : public T::Bar {
XYZ(): T::Bar() { }
};
void test() {
XYZ<Base> b;
XYZ<Derived> d;
}