// PR c++/82219 // { dg-additional-options "-Wall -Wextra" } struct A { template T foo(T *) const { return static_cast(0); } void bar() const { foo(&i); } int i; };