[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#808724: marked as done (gdc: "switch" requires a "default" case)



Your message dated Mon, 11 May 2020 15:20:12 +0200
with message-id <f150667d-6a8f-c227-d283-88c45c4d992c@gdcproject.org>
and subject line Re: Bug#808724: gdc: "switch" requires a "default" case
has caused the Debian Bug report #808724,
regarding gdc: "switch" requires a "default" case
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
808724: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=808724
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
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

--- End Message ---
--- Begin Message ---
Package: gdc
Version: 4:9.2.1-3.1

Yep, the deprecation period is over, and the warning is now an error in the front-end (note, this was arguably never a bug in the first place).

Iain.


On 07/05/2020 17:09, Witold Baryluk wrote:
> Package: gdc
> Version: 4:9.2.1-3.1
> Followup-For: Bug #808724
> 
> This bug seems to be fixed long time ago:
> 
> $ gdc example.d
> dlang.d:10:9: error: switch statement without a default; use 'final switch' or add 'default: assert(0);' or add 'default: break;'
>    10 |         switch (1) {
> $
> 
> 
> So, bug can be closed.
> 
> -- System Information:
> Debian Release: bullseye/sid
>   APT prefers unstable-debug
>   APT policy: (500, 'unstable-debug'), (500, 'unstable'), (1, 'experimental-debug'), (1, 'experimental')
> Architecture: amd64 (x86_64)
> Foreign Architectures: i386
> 
> Kernel: Linux 5.2.0-3-amd64 (SMP w/32 CPU cores)
> Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
> Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
> Shell: /bin/sh linked to /usr/bin/dash
> Init: systemd (via /run/systemd/system)
> LSM: AppArmor: enabled
> 
> Versions of packages gdc depends on:
> ii  gdc-9           9.3.0-11
> ii  libgphobos-dev  9.2.1-3.1
> 
> gdc recommends no packages.
> 
> gdc suggests no packages.
> 
> -- no debconf information
> 

--- End Message ---

Reply to: