1 // PR c++/15640 2 3 struct A { 4 void foo(void); 5 }; 6 bar()7 template <int> void bar() { 8 A a; 9 a + a.foo; // { dg-error "" } 10 } 11