title: Declaring variables inside C switch/case
body: <p>Well, this is not actually a question..</p>
  
  <p>I have just occasionally found out that there's an interesting way to declare local variables inside a switch/case block. Instead of using braces inside every case block, you can write:</p>
  
  <pre><code>switch (action) {
    int res;
    int value;
  case ACTION_OPEN:
    res = open(...);
    ...
    break;
  case  ...
  }
  </code></pre>
  
  <p>So, I just wonder what C/C++ compilers besides gcc support this construction? It looks like a common fall-through. Any comments on this construction are welcome!</p>