Bug 12948 – @safe std.algorithm.sort().release

Status
RESOLVED
Resolution
WORKSFORME
Severity
normal
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-06-19T14:33:00Z
Last change time
2016-06-08T04:56:52Z
Keywords
safe
Assigned to
nobody
Creator
bearophile_hugs

Comments

Comment #0 by bearophile_hugs — 2014-06-19T14:33:21Z
void main() @safe { import std.algorithm; auto r = [1].sort().release; } dmd 2.066alpha gives: temp.d(3): Error: safe function 'D main' cannot call system function 'std.range.SortedRange!(int[], "a < b").SortedRange.release'
Comment #1 by bugzilla — 2016-06-08T04:56:52Z
Works with the current compiler.