]> gcc.gnu.org Git - gcc.git/blob - gcc/testsuite/g++.dg/cpp0x/error2.C
PR c++/92590 - wrong handling of inherited default ctor.
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / error2.C
1 // PR c++/38656
2 // { dg-do compile { target c++11 } }
3
4 template<int> int foo();
5
6 template<typename F> void bar(F f)
7 {
8 f((foo<0>()=0)...); // { dg-error "pattern '\\(foo\\<0\\>\\)\\(\\)=0'" }
9 }
This page took 0.037834 seconds and 5 git commands to generate.