summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2012-08-13 21:29:18 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2012-08-13 21:29:18 +0000
commit47726b2f026003371288b2c84cf5cc9531ee8f47 (patch)
tree19cea4f68ff2839ec567219b18d2855dcadd0b3a /clang/test/CodeGenCXX
parent6c30e137d021be9df74eac1998e6d4efe46eb921 (diff)
downloadbcm5719-llvm-47726b2f026003371288b2c84cf5cc9531ee8f47.tar.gz
bcm5719-llvm-47726b2f026003371288b2c84cf5cc9531ee8f47.zip
PR13570: When an unresolved overloaded call appeared in a dependent context, we
forgot to set it as being instantiation-dependent as well as being type- and value-dependent. llvm-svn: 161791
Diffstat (limited to 'clang/test/CodeGenCXX')
-rw-r--r--clang/test/CodeGenCXX/debug-info-cxx0x.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/debug-info-cxx0x.cpp b/clang/test/CodeGenCXX/debug-info-cxx0x.cpp
index 37ccdb01c5c..9d303755be0 100644
--- a/clang/test/CodeGenCXX/debug-info-cxx0x.cpp
+++ b/clang/test/CodeGenCXX/debug-info-cxx0x.cpp
@@ -6,3 +6,13 @@ namespace PR9414 {
return x;
}
}
+
+// Don't crash.
+namespace PR13570 {
+ template<typename T, typename U> struct P {};
+ template<typename T> struct A {
+ template<typename U> static P<T,U> isa(U);
+ decltype(isa(int())) f() {}
+ };
+ template struct A<int>;
+}
OpenPOWER on IntegriCloud