Bug 19440 – onRangeError should be @nogc

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
druntime
Product
D
Version
D2
Platform
All
OS
All
Creation time
2018-11-27T16:42:47Z
Last change time
2019-05-16T23:29:09Z
Assigned to
Eduard Staniloiu
Creator
Andrei Alexandrescu

Comments

Comment #0 by andrei — 2018-11-27T16:42:47Z
https://dlang.org/library/core/exception/on_range_error.html should be @nogc by using static allocation.
Comment #1 by greeenify — 2019-05-16T23:29:09Z
It's now @nogc: --- extern(C) void onRangeError ( string file = __FILE__, ulong line = cast(ulong)__LINE__ ) pure nothrow @nogc @trusted; ---