* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / sfinae24.C
blob6d275d317be55006556f35fdee88ae40fedb8c8d
1 // PR c++/49058
2 // This error is not subject to SFINAE because it doesn't happen in the
3 // deduction context.
4 // { dg-do compile { target c++11 } }
5 // { dg-prune-output "note" }
7 template<typename T> T val();
9 struct F1
11     void operator()();
14 template<typename F>
15 struct Bind
17     template<typename R
18       = decltype( val<F>()( ) )>
19     R f();
21     template<typename R
22       = decltype( val<const F>()( ) )> // { dg-error "no match" }
23     R f() const;
26 int main()
28   Bind<F1> b;