blob: 58594f9629ccbe9aa635e3e4e6b542b0caf6290e [file] [log] [blame]
// PR c++/64877
// { dg-options "-Waddress" }
template<class Derived>
struct S
{
void m() {
}
S()
{
if (&S<Derived>::Unwrap != &Derived::Unwrap)
m();
}
void Unwrap() {
}
};
struct T : public S<T>
{
};
T t;