diff options
| author | Richard Smith <richard-llvm@metafoo.co.uk> | 2017-01-02 02:42:17 +0000 |
|---|---|---|
| committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2017-01-02 02:42:17 +0000 |
| commit | efcfe860723bc611b555d8d1db8c75405807b367 (patch) | |
| tree | 9037a55f704dad5d06e376fa25597594f2bdb934 /clang/test/Misc/diag-template-diffing.cpp | |
| parent | aac13a7f2b597eafeabc2ffec44a2ad9bcca59a9 (diff) | |
| download | bcm5719-llvm-efcfe860723bc611b555d8d1db8c75405807b367.tar.gz bcm5719-llvm-efcfe860723bc611b555d8d1db8c75405807b367.zip | |
DR1391: Check for implicit conversion sequences for non-dependent function
template parameters between deduction and substitution. The idea is to accept
as many cases as possible, on the basis that substitution failure outside
the immediate context is much more common during substitution than during
implicit conversion sequence formation.
This does not implement the partial ordering portion of DR1391, which so
far appears to be misguided.
llvm-svn: 290808
Diffstat (limited to 'clang/test/Misc/diag-template-diffing.cpp')
| -rw-r--r-- | clang/test/Misc/diag-template-diffing.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Misc/diag-template-diffing.cpp b/clang/test/Misc/diag-template-diffing.cpp index 78083989928..2192223191b 100644 --- a/clang/test/Misc/diag-template-diffing.cpp +++ b/clang/test/Misc/diag-template-diffing.cpp @@ -1401,7 +1401,7 @@ void run() { f(1, integral_constant<bool, true>{}); } // CHECK-ELIDE-NOTREE: error: no matching function for call to 'f' -// CHECK-ELIDE-NOTREE: note: candidate function [with T = int] not viable: no known conversion from 'integral_constant<[...], true>' to 'integral_constant<[...], false>' for 2nd argument +// CHECK-ELIDE-NOTREE: note: candidate function not viable: no known conversion from 'integral_constant<[...], true>' to 'integral_constant<[...], false>' for 2nd argument } namespace ZeroArgs { |

