Files
clang-p2996/clang/test/CodeGenCXX/debug-info-cxx0x.cpp
Richard Smith 47726b2f02 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
2012-08-13 21:29:18 +00:00

19 lines
351 B
C++

// RUN: %clang_cc1 -emit-llvm-only -std=c++11 -g %s
namespace PR9414 {
int f() {
auto x = 0;
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>;
}