Summary: ParameterStorageClassTuple fails in CTFE
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from Max Samukha <> 2012-06-22 10:42:33 
PDT ---
import std.traits;

string bar(T)()
    alias ParameterStorageClassTuple!(T) scs;
    return "";

string foo(string attrs)
    return "";

alias ref int function() Fn;
enum baz2 = foo(bar!Fn());

\phobos\std\traits.d(99): Error: expression "NcZi"c[2u..4u] is not a valid
template value argument

This is the smallest case I have for now. Still trying to narrow it further.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to