Bug#808724: gdc: "switch" requires a "default" case
Package: gdc
Version: 4:5.3.1-1
Severity: normal
Dear maintainer,
The D languages requires that the "switch" statement has a "default"
case. This is supposed to be already implemented in the frontend and
produce a compilation error.
Here is a simple test-case that shouldn't compile:
import std.stdio;
void main() {
switch (1) {
case 0:
break;
}
}
Best regards,
Celelibi
-- System Information:
Debian Release: stretch/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (x86_64)
Kernel: Linux 3.10.11 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Init: sysvinit (via /sbin/init)
Versions of packages gdc depends on:
ii gdc-5 5.3.1-3
ii libphobos-dev 5.3.1-1
gdc recommends no packages.
gdc suggests no packages.
-- no debconf information
Reply to: