https://issues.dlang.org/show_bug.cgi?id=16472

Nick Treleaven <n...@geany.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |n...@geany.org
            Summary|Spurious "is used as a      |Spurious "is used as a
                   |type" when using enum       |type" when aliasing enum
                   |template member as default  |template as default
                   |parameter                   |parameter

--- Comment #1 from Nick Treleaven <n...@geany.org> ---
Reduced:

enum e() = 0;

template t(alias v = e!()) {} //Error
alias dummy = t!();

No error if you define `t` without `alias`:

template t(int v = e!()) {} //OK

--

Reply via email to