]> gcc.gnu.org Git - gcc.git/blob - gcc/testsuite/g++.dg/cpp0x/decltype69.C
PR c++/92590 - wrong handling of inherited default ctor.
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / decltype69.C
1 // PR c++/89356
2 // { dg-do compile { target c++11 } }
3
4 typedef unsigned a;
5 template <typename> struct h {};
6 template <int, class b> auto c(b f) -> h<decltype(f(a{0}))>;
7 typedef char byte;
8 enum d : byte;
9 d g(byte);
10 h<d> e = c<6>(g);
This page took 0.036914 seconds and 5 git commands to generate.