* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / pr80805.C
bloba13ee1139c77142d65bb6702f7957d1c0b33d4d6
1 // { dg-do compile { target c++11 } }
2 // { dg-options "-g" }
4 template<class T> struct R { using type = T; };
5 template<class F> F r(typename R<F>::type f) { return f; }
6 template<class F> void s(F) {}
7 template<bool, class F> void t(F f) { s(r<F>(f)); }
8 template<bool> struct S {};
9 template<class> struct P { constexpr static bool value = false; };
10 template<class D>
11 void g()
13     constexpr static bool H = P<D>::value;
14     using X = S<H>;
15     []() -> X
16     {
17         t<false>([]{});
18         return X{};
19     }();
21 int main() { g<int>(); }