// RUN: %clang_cc1 -fsyntax-only -verify %s enum Enum { val = 1 }; template struct C { typedef C Self; }; template struct C; template struct get_size { static const unsigned value = sizeof(T); }; template struct X0 { enum { Val1 = get_size::value, Val2, SumOfValues = Val1 + Val2 }; }; X0 x0i;