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