[Issue 8285] New: ParameterStorageClassTuple fails in CTFE

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jun 22 10:40:10 PDT 2012


http://d.puremagic.com/issues/show_bug.cgi?id=8285

           Summary: ParameterStorageClassTuple fails in CTFE
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: samukha at voliacable.com


--- Comment #0 from Max Samukha <samukha at voliacable.com> 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: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list