[Issue 12253] New: Built-in sort accepts a struct of immutables

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Feb 25 07:13:05 PST 2014


https://d.puremagic.com/issues/show_bug.cgi?id=12253

           Summary: Built-in sort accepts a struct of immutables
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Keywords: accepts-invalid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: bearophile_hugs at eml.cc


--- Comment #0 from bearophile_hugs at eml.cc 2014-02-25 07:13:00 PST ---
DMD 2.065 compiles this with no errors:

struct Foo {
    immutable int x;
}
void main() {
    Foo[] a;
    a.sort;
}

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list