summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/error2.C
blob: ca681eb2f798ce7d97a0daa9bdb06cbcf1bc46e4 (plain)
1
2
3
4
5
6
7
8
9
// PR c++/38656
// { dg-options "-std=c++0x" }

template<int> int foo();

template<typename F> void bar(F f)
{
  f((foo<0>()=0)...); // { dg-error "pattern '\\(foo\\<0\\>\\)\\(\\)=0'" }
}