[Issue 3255] New: final switch broken with -w switch

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Aug 17 09:30:48 PDT 2009


           Summary: final switch broken with -w switch
           Product: D
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: jeremiep at gmail.com

When using DMD with the -w switch for warnings, a final switch will output a

"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"

Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

More information about the Digitalmars-d-bugs mailing list