Merged revisions 208012,208018-208019,208021,208023-208030,208033,208037,208040-20804...
[official-gcc.git] / main / gcc / testsuite / g++.dg / cpp0x / error2.C
blobe6af294c1803b40a05fbbc9acf44264af8d496c5
1 // PR c++/38656
2 // { dg-do compile { target c++11 } }
4 template<int> int foo();
6 template<typename F> void bar(F f)
8   f((foo<0>()=0)...); // { dg-error "pattern '\\(foo\\<0\\>\\)\\(\\)=0'" }