diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-01-29 17:15:43 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-01-29 17:15:43 +0000 |
commit | 4b4844f88d28ccb4a0b62d0ae5d081d3213a1d19 (patch) | |
tree | a28ddd4b6298a3c0162369b97c8d33796f0f7daa /clang/test/SemaTemplate/qualified-id.cpp | |
parent | ce9a4faea5b84acef9722990e75a79e68a595041 (diff) | |
download | bcm5719-llvm-4b4844f88d28ccb4a0b62d0ae5d081d3213a1d19.tar.gz bcm5719-llvm-4b4844f88d28ccb4a0b62d0ae5d081d3213a1d19.zip |
When naming a function template via a qualified-id (or any other way
that ADL is suppressed), we need to build an
UnresolvedLookupExpr. Fixes PR6063, which was hitting Boost headers
pretty hard.
llvm-svn: 94814
Diffstat (limited to 'clang/test/SemaTemplate/qualified-id.cpp')
-rw-r--r-- | clang/test/SemaTemplate/qualified-id.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/clang/test/SemaTemplate/qualified-id.cpp b/clang/test/SemaTemplate/qualified-id.cpp index 655a80e2bfb..2e3a826ce89 100644 --- a/clang/test/SemaTemplate/qualified-id.cpp +++ b/clang/test/SemaTemplate/qualified-id.cpp @@ -29,3 +29,18 @@ namespace test2 { } }; } + +namespace PR6063 { + template <typename T> void f(T, T); + + namespace detail + { + using PR6063::f; + } + + template <typename T> + void g(T a, T b) + { + detail::f(a, b); + } +} |