D-Programming-Language/dmd — pull request #660 by yebblies (2012-01-30 06:53:30+00:00)
Title: Issue 3144 - Invalid break accepted

Force curly braces on switch statement's body.

It also disables the technically allowed but absolutely useless version:

```D
switch(exp)
default:
statement;
```

Yes, I know switch is a magical creature that defies the laws of physics, and the C standard declares it should be able to roam free, but I see no reason D should make the same mistake here.

http://d.puremagic.com/issues/show_bug.cgi?id=3144