summaryrefslogtreecommitdiffstats
path: root/clang/test/Misc/diag-template-diffing.cpp
diff options
context:
space:
mode:
authorRichard Trieu <rtrieu@google.com>2013-03-15 23:55:09 +0000
committerRichard Trieu <rtrieu@google.com>2013-03-15 23:55:09 +0000
commit64ab30392da6818717c2a6fd530559b472dedf2d (patch)
treeca371bb503e5ffee500dba1a30c26d55e74987ab /clang/test/Misc/diag-template-diffing.cpp
parent6482d2305efbfdac07b51793a5a8051fefba0f1f (diff)
downloadbcm5719-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.cpp2
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 {
OpenPOWER on IntegriCloud