// RUN: clang-cc -fsyntax-only %s -Wall template class A { struct { }; }; A a0; template struct B { union { int a; void* b; }; void f() { a = 10; b = 0; } }; B b0; template struct C { union { int a; void* b; }; C(int a) : a(a) { } C(void* b) : b(b) { } }; C c0(0);