// RUN: %clang_cc1 -fsyntax-only -verify %s template struct X1 { static const int value = 0; }; template struct X1 { static const int value = 1; }; template struct X1 { static const int value = 2; }; template struct X1 { static const int value = 3; }; int array0[X1::value == 0? 1 : -1]; int array1[X1::value == 1? 1 : -1]; int array2[X1::value == 2? 1 : -1]; typedef const int* CIP; int array3[X1::value == 3? 1 : -1]; template struct X2 { }; template struct X2 { }; // expected-note{{matches}} template struct X2 { }; // expected-note{{matches}} template struct X2 { }; X2 x2a; // expected-error{{ambiguous}} X2 x2b;