www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 12253] New: Built-in sort accepts a struct of immutables

reply d-bugmail puremagic.com writes:
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 puremagic.com
        ReportedBy: bearophile_hugs eml.cc


--- Comment #0 from bearophile_hugs 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: -------
Feb 25 2014
next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12253



--- Comment #1 from bearophile_hugs eml.cc 2014-02-25 07:16:00 PST ---
(Problem found by Vladimir Panteleev in Issue 12248 )

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 25 2014
prev sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12253


yebblies <yebblies gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |yebblies gmail.com


--- Comment #2 from yebblies <yebblies gmail.com> 2014-02-28 23:43:32 EST ---
This is probably WONTFIX with builtin sort going away.

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