]> gcc.gnu.org Git - gcc.git/blob - gcc/testsuite/g++.dg/cpp0x/sfinae1.C
PR c++/92590 - wrong handling of inherited default ctor.
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / sfinae1.C
1 // { dg-do compile { target c++11 } }
2
3 template< typename T_VECTOR >
4 void f(const T_VECTOR &a, decltype(a[0]) t = 0);
5 template< typename T >
6 void f(const T &a, decltype(a*1) t = 0);
7
8 int main() {
9 int c;
10 f(c);
11 }
This page took 0.040788 seconds and 5 git commands to generate.