← Back to index
|
Original Bugzilla link
Bug 14032 – [ICE](mtype.c line 154) with std.algorithm.tee
Status
RESOLVED
Resolution
WORKSFORME
Severity
enhancement
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2015-01-23T10:40:15Z
Last change time
2020-03-21T03:56:42Z
Assigned to
No Owner
Creator
bearophile_hugs
Comments
Comment #0
by bearophile_hugs — 2015-01-23T10:40:15Z
int foo()() { return 1; } void main() { import std.algorithm: tee; [1].tee!foo; } dmd2.067alpha gives: ...\dmd2\src\phobos\std\range\package.d(8194,22): Error: template instance fun!int does not match template declaration foo()() Assertion failure: 'false' on line 154 in file 'mtype.c'