summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/PR9459.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-04-27 04:48:22 +0000
committerDouglas Gregor <dgregor@apple.com>2011-04-27 04:48:22 +0000
commit8b02cd0beae6e38273afb9d339489f6bb59b8bde (patch)
treea6d3229f872d0d9cac8039d0283c4ebbd509f82f /clang/test/SemaCXX/PR9459.cpp
parentc5d3ba1aad51caed70e0f2e6e52fe6d4436bcae4 (diff)
downloadbcm5719-llvm-8b02cd0beae6e38273afb9d339489f6bb59b8bde.tar.gz
bcm5719-llvm-8b02cd0beae6e38273afb9d339489f6bb59b8bde.zip
Extend Sema::ClassifyName() to support C++, ironing out a few issues
in the classification of template names and using declarations. We now properly typo-correct the leading identifiers in statements to types, templates, values, etc. As an added bonus, this reduces the number of lookups required for disambiguation. llvm-svn: 130288
Diffstat (limited to 'clang/test/SemaCXX/PR9459.cpp')
-rw-r--r--clang/test/SemaCXX/PR9459.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/clang/test/SemaCXX/PR9459.cpp b/clang/test/SemaCXX/PR9459.cpp
index 33cb2e5bc29..dfb242dc595 100644
--- a/clang/test/SemaCXX/PR9459.cpp
+++ b/clang/test/SemaCXX/PR9459.cpp
@@ -2,8 +2,6 @@
// Don't crash.
-template<typename>struct ae_same; // expected-note {{declared here}}
+template<typename>struct ae_same;
template<typename>struct ts{}ap()
-{ts<a>::ap<ae_same<int>::&ae_same<>>::p(a); }; // expected-error 2 {{undeclared identifier}} \
- // expected-error 2 {{expected}} expected-error {{a space is required}} \
- // expected-error 2 {{global}} expected-error {{too few}}
+{ts<a>::ap<ae_same<int>::&ae_same<>>::p(a); }; // expected-error {{use of undeclared identifier 'a'}}
OpenPOWER on IntegriCloud