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