[Issue 6416] New: [CTFE] Declaration static struct is not yet implemented in CTFE

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Jul 31 06:44:36 PDT 2011


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

           Summary: [CTFE] Declaration static struct is not yet
                    implemented in CTFE
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: kennytm at gmail.com


--- Comment #0 from kennytm at gmail.com 2011-07-31 06:44:34 PDT ---
Test case:

--------------------
static assert({
    static struct S {}
    return true;
}());
--------------------
x.d(2): Error: Declaration static struct S
{
}

 is not yet implemented in CTFE
...
--------------------

Declaring and using a normal inner struct is supported.

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