diff options
Diffstat (limited to 'test/CXX/temp/temp.fct.spec/temp.deduct/p9.cpp')
-rw-r--r-- | test/CXX/temp/temp.fct.spec/temp.deduct/p9.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/CXX/temp/temp.fct.spec/temp.deduct/p9.cpp b/test/CXX/temp/temp.fct.spec/temp.deduct/p9.cpp index 9fd3df59d103..f7103a33cc72 100644 --- a/test/CXX/temp/temp.fct.spec/temp.deduct/p9.cpp +++ b/test/CXX/temp/temp.fct.spec/temp.deduct/p9.cpp @@ -32,8 +32,11 @@ namespace PR6707 { static const unsigned char ten = 10; template<typename T, T Value, typename U> void f2(X<T, Value>, X<U, Value>); + // expected-note@-1 {{candidate template ignored: deduced values of conflicting types for parameter 'Value' (10 of type 'int' vs. 10 of type 'char')}} + // expected-note@-2 {{candidate template ignored: deduced values of conflicting types for parameter 'Value' (10 of type 'char' vs. 10 of type 'int')}} void g2() { - f2(X<int, 10>(), X<char, ten>()); + f2(X<int, 10>(), X<char, ten>()); // expected-error {{no matching}} + f2(X<char, 10>(), X<int, ten>()); // expected-error {{no matching}} } } |