// Build don't link: template void f(); template <> void f<4>() {} template struct S { enum E { a = 1, b = a + 3 }; }; int main() { f::b>(); }