Home | History | Annotate | Download | only in basic.scope.hiding
      1 // RUN: %clang_cc1 -fsyntax-only -verify %s
      2 
      3 // rdar4641403
      4 namespace N {
      5   struct X { // expected-note{{candidate found by name lookup}}
      6     float b;
      7   };
      8 }
      9 
     10 using namespace N;
     11 
     12 typedef struct {
     13   int a;
     14 } X; // expected-note{{candidate found by name lookup}}
     15 
     16 
     17 struct Y { };
     18 void Y(int) { }
     19 
     20 void f() {
     21   X *x; // expected-error{{reference to 'X' is ambiguous}}
     22   Y(1); // okay
     23 }
     24 
     25