1 // PR c++/64877
2 // { dg-options "-Waddress" }
3 
4 template<class Derived>
5 struct S
6 {
mS7   void m() {
8   }
9 
SS10   S()
11   {
12     if (&S<Derived>::Unwrap != &Derived::Unwrap)
13       m();
14   }
15 
UnwrapS16   void Unwrap() {
17   }
18 };
19 
20 struct T : public S<T>
21 {
22 };
23 
24 T t;
25