>>280
これがコンパイルできない理由を考えれば
事態が把握できますか?

struct X { X(){} };

void f(int a)
{
switch (a) {
case 1: X x; break;
case 2: X y;
}