1// { dg-do assemble } 2// Origin: Corey Kosak <kosak@cs.cmu.edu> 3 4struct cow_t { 5 template<bool Q> 6 static void tfunc(cow_t *cowp) {} 7 8 void moo() { 9 cow_t *cowp; 10 tfunc<true>(cowp); 11 } 12}; 13 14 15int main() 16{ 17 cow_t *cowp; 18 cow_t::tfunc<true>(cowp); 19} 20