D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 3255 - final switch broken with -w switch
Summary: final switch broken with -w switch
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P2 normal
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-17 09:30 UTC by Jeremie Pelletier
Modified: 2015-06-09 05:15 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Jeremie Pelletier 2009-08-17 09:30:48 UTC
When using DMD with the -w switch for warnings, a final switch will output a warning:

"warning: Error: switch statement has no default"

if a default is added, it turns to an error

"Error: default statement not allowed in final switch statement"
Comment 1 Walter Bright 2009-09-03 13:45:22 UTC
Fixed dmd 2.032