September 17, 2017 ICE with custom map template. | ||||
|---|---|---|---|---|
| ||||
I get an ICE with the following code:
void main() {
import std.stdio;
template mmap(alias fun) {
void mmap(T...)(T list) {
foreach (item; list) {
fun(item);
}
}
}
void printstuffs(T...)(T args) {
void printer(G)(G arg) {
writeln(arg);
}
mmap!printer(args);
}
printstuffs("bla", 7, 9.0);
}
The message printed is:
test.d: In function ‘mmap’:
test.d:7:8: internal compiler error: in get_frame_for_symbol, at d/d-codegen.cc:2208
fun(item);
^
| ||||
September 17, 2017 Re: ICE with custom map template. | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Elronnd | See also the bugzilla (https://issues.dlang.org/show_bug.cgi?id=17836). | |||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply