[Issue 7788] New: __gshared and UFCS - "Error: nested structs with constructors are not yet supported in CTFE (Bug 6419)"

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Mar 28 00:40:42 PDT 2012


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

           Summary: __gshared and UFCS - "Error: nested structs with
                    constructors are not yet supported in CTFE (Bug 6419)"
           Product: D
           Version: D2
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: simendsjo at gmail.com


--- Comment #0 from simendsjo <simendsjo at gmail.com> 2012-03-28 00:41:09 PDT ---
The following worked on an earlier head of 2.059, but as of yesterday, it
fails:

import std.algorithm, std.array, std.utf, std.conv;
void main() {
    auto ok = [1].map!("a*1")().array();
    __gshared auto ok2 = [1].map!("a*1")();
    __gshared auto bug = [1].map!("a*1")().array();
}

Only tested on linux with and without -m32

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