]> granicus.if.org Git - clang/commitdiff
Resolve this FIXME: unelaborated lookups are ambiguous, too.
authorJohn McCall <rjmccall@apple.com>
Wed, 18 Nov 2009 23:05:13 +0000 (23:05 +0000)
committerJohn McCall <rjmccall@apple.com>
Wed, 18 Nov 2009 23:05:13 +0000 (23:05 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89266 91177308-0d34-0410-b5e6-96231b3b80d8

test/SemaCXX/using-directive.cpp

index 732daacffcc46808e256022afe27ea83da451971..3b67c7a5b61f0f88a3bff6bb25f83a7022fa85d2 100644 (file)
@@ -45,10 +45,10 @@ namespace A {
     using namespace E; // expected-error{{reference to 'E' is ambiguous}}
   }
 
-  struct K2 {}; // expected-note{{candidate found by name lookup is 'A::K2'}}
+  struct K2 {}; // expected-note 2{{candidate found by name lookup is 'A::K2'}}
 }
 
-struct K2 {}; // expected-note{{candidate found by name lookup is 'K2'}}
+struct K2 {}; // expected-note 2{{candidate found by name lookup is 'K2'}}
 
 using namespace A;
 
@@ -56,9 +56,7 @@ void K1::foo() {} // okay
 
 struct K2 *k2; // expected-error{{reference to 'K2' is ambiguous}}
 
-// FIXME: This case is incorrectly diagnosed!
-//K2 k3;
-
+K2 *k3; // expected-error{{reference to 'K2' is ambiguous}}
 
 class X { // expected-note{{candidate found by name lookup is 'X'}}
   // FIXME: produce a suitable error message for this