Skip to content

Compilation error with DMD head - Switch case fall-through. #41

@Kapps

Description

@Kapps

On line 1064 of ddox/internal/demangle.d, the implicit fall through will fail to compile with DMD head. Instead it would need to be changed to explicitly use goto case '0' to fall through to case '0' .. '9'.

Build Log:
dub --build=ddox
snipped
Compiling...
Compiling diet template 'ddox.overview.dt' (compat)...
Compiling diet template 'ddox.module.dt' (compat)...
Compiling diet template 'ddox.variable.dt' (compat)...
Compiling diet template 'ddox.function.dt' (compat)...
Compiling diet template 'ddox.composite.dt' (compat)...
Compiling diet template 'ddox.template.dt' (compat)...
Compiling diet template 'ddox.enum.dt' (compat)...
../../.dub/packages/ddox-0.9.17/source/ddox/internal/demangle.d(1064): Error: switch case fallthrough - use 'goto case;' if intended
Error executing command run: DMD compile run failed with exit code 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions