Should the 2.054 feature about warning on implicit fallthrough include labels?

2011-09-14 Thread simendsjo
Not sure if this is a bug or as intended. import std.stdio; void main() { int i = 1; switch(i) { case 0: writeln(case 0); goto default; // needed here default: writeln(default); // But always falls through here

Re: Should the 2.054 feature about warning on implicit fallthrough include labels?

2011-09-14 Thread Dmitry Olshansky
On 14.09.2011 22:52, simendsjo wrote: Not sure if this is a bug or as intended. import std.stdio; void main() { int i = 1; switch(i) { case 0: writeln(case 0); goto default; // needed here default: writeln(default); // But always falls through here aLabel: writeln(a label); } } Label doesn't

Re: Should the 2.054 feature about warning on implicit fallthrough include labels?

2011-09-14 Thread Timon Gehr
On 09/14/2011 08:52 PM, simendsjo wrote: Not sure if this is a bug or as intended. import std.stdio; void main() { int i = 1; switch(i) { case 0: writeln(case 0); goto default; // needed here default: writeln(default); // But always falls through here aLabel: writeln(a label); } } This is as