[Issue 12662] New: std.range.retro is not @nogc
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sun Apr 27 04:01:20 PDT 2014
https://issues.dlang.org/show_bug.cgi?id=12662
Issue ID: 12662
Summary: std.range.retro is not @nogc
Product: D
Version: D2
Hardware: x86
OS: Windows
Status: NEW
Keywords: rejects-valid
Severity: normal
Priority: P1
Component: Phobos
Assignee: nobody at puremagic.com
Reporter: bearophile_hugs at eml.cc
void main() @nogc {
import std.range: retro;
int[] data;
foreach_reverse (x; data) {} // OK
foreach (x; data.retro) {} // Error
}
DMD 2.066alpha gives:
test.d(5,5): Error: @nogc function 'D main' cannot call non- at nogc function
'std.range.retro!(int[]).retro.Result!().Result.front'
--
More information about the Digitalmars-d-bugs
mailing list