diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-05-20 20:58:56 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-05-20 20:58:56 +0000 |
commit | 3e51e173b6bbd8f66bbabdf8d153583f2c7c5eae (patch) | |
tree | edbe40ca1b9f1ff68ee8607e38ade2840d88169d /clang/test | |
parent | a4ca28a3aeb081b2f244e589e9c55b13637b9c75 (diff) | |
download | bcm5719-llvm-3e51e173b6bbd8f66bbabdf8d153583f2c7c5eae.tar.gz bcm5719-llvm-3e51e173b6bbd8f66bbabdf8d153583f2c7c5eae.zip |
Reinstate r104117, Chandler Carruth's change that "[provides] a naming
class for UnresolvedLookupExprs, even when occuring on template
names" along with a fix for an Objective-C++ crasher it introduced.
llvm-svn: 104277
Diffstat (limited to 'clang/test')
-rw-r--r-- | clang/test/CXX/temp/temp.names/p2.cpp | 13 | ||||
-rw-r--r-- | clang/test/SemaObjCXX/ivar-struct.mm | 7 |
2 files changed, 20 insertions, 0 deletions
diff --git a/clang/test/CXX/temp/temp.names/p2.cpp b/clang/test/CXX/temp/temp.names/p2.cpp new file mode 100644 index 00000000000..93e45dd7e3b --- /dev/null +++ b/clang/test/CXX/temp/temp.names/p2.cpp @@ -0,0 +1,13 @@ +// RUN: %clang_cc1 -fsyntax-only -verify %s + +// Ensure that when enforcing access control an unqualified template name with +// explicit template arguments, we don't lose the context of the name lookup +// because of the required early lookup to determine if it names a template. +namespace PR7163 { + template <typename R, typename P> void h(R (*func)(P)) {} + class C { + template <typename T> static void g(T*) {}; + public: + void f() { h(g<int>); } + }; +} diff --git a/clang/test/SemaObjCXX/ivar-struct.mm b/clang/test/SemaObjCXX/ivar-struct.mm new file mode 100644 index 00000000000..3f9c7eb1a50 --- /dev/null +++ b/clang/test/SemaObjCXX/ivar-struct.mm @@ -0,0 +1,7 @@ +// RUN: %clang_cc1 -fsyntax-only -verify %s +@interface A { + struct X { + int x, y; + } X; +} +@end |