Daily bump.
[gcc.git] / gcc / testsuite / g++.dg / warn / pr101219.C
blobd5d44e44852fc3ceb7b22eca08372a0836cf36cf
1 /* PR c++/101219 - ICE on use of uninitialized memfun pointer
2    { dg-do compile }
3    { dg-options "-Wall" } */
5 struct S { void m(); };
7 template <int> bool f() {
8   void (S::*mp)();
10   /* The expression below isn't type-dependent so also verify
11      it's diagnosed even though the template isn't instantiated.  */
12   return &S::m == mp; // { dg-warning "\\\[-Waddress" }