1 // PR c++/38656
2 // { dg-do compile { target c++11 } }
3 
4 template<int> int foo();
5 
bar(F f)6 template<typename F> void bar(F f)
7 {
8   f((foo<0>()=0)...); // { dg-error "pattern '\\(foo\\<0\\>\\)\\(\\)=0'" }
9 }
10