Home | History | Annotate | Download | only in SemaCXX
      1 // RUN: %clang_cc1 %s -fsyntax-only -verify
      2 // PR5543
      3 
      4 struct A { int x; union { int* y; float* z; }; }; struct B : A {int a;};
      5 int* a(B* x) { return x->y; }
      6 
      7 struct x { union { int y; }; }; x y; template <int X> int f() { return X+y.y; }
      8 int g() { return f<2>(); }
      9 
     10