diff options
author | Richard Trieu <rtrieu@google.com> | 2013-03-15 23:55:09 +0000 |
---|---|---|
committer | Richard Trieu <rtrieu@google.com> | 2013-03-15 23:55:09 +0000 |
commit | 64ab30392da6818717c2a6fd530559b472dedf2d (patch) | |
tree | ca371bb503e5ffee500dba1a30c26d55e74987ab /clang/test/Misc/diag-template-diffing.cpp | |
parent | 6482d2305efbfdac07b51793a5a8051fefba0f1f (diff) | |
download | bcm5719-llvm-64ab30392da6818717c2a6fd530559b472dedf2d.tar.gz bcm5719-llvm-64ab30392da6818717c2a6fd530559b472dedf2d.zip |
Improve template diffing handling of default integer values.
When the template argument is both default and value dependent, the expression
retrieved for the default argument cannot be evaluated, thus never matching
any argument value. To get the proper value, get the template argument
from the desugared template specialization. Also, output the original
expression to provide more information about the argument mismatch.
llvm-svn: 177209
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 6be705511db..ac15dfe29cf 100644 --- a/clang/test/Misc/diag-template-diffing.cpp +++ b/clang/test/Misc/diag-template-diffing.cpp @@ -797,7 +797,7 @@ namespace PR14342 { X<int, (signed char)-1> x = X<long, -1>(); X<int, 3UL> y = X<int, 2>(); // CHECK-ELIDE-NOTREE: error: no viable conversion from 'X<long, [...]>' to 'X<int, [...]>' - // CHECK-ELIDE-NOTREE: error: no viable conversion from 'X<[...], 2>' to 'X<[...], 3UL>' + // CHECK-ELIDE-NOTREE: error: no viable conversion from 'X<[...], 2>' to 'X<[...], 3>' } namespace PR14489 { |