[Issue 17845] [ICE] backend\cgcod.c 1677 static foreach
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Sep 21 08:14:58 UTC 2017
https://issues.dlang.org/show_bug.cgi?id=17845
--- Comment #1 from Mr. Smith <mrsmith33 at yandex.ru> ---
This crashes with the same error
---
void main()
{
struct Row
{
@Column!Row((ref Row r, scope SinkT s){ s("test"); })
uint fileSize;
}
auto formatters = parseRowInfo!Row;
}
alias SinkT = void delegate(const(char)[]);
alias Formatter(Row) = void delegate(ref Row row, scope SinkT sink);
struct Column(Row)
{
Formatter!Row formatter;
}
Formatter!Row[] parseRowInfo(Row)()
{
import std.traits;
Formatter!Row[] formatters;
alias symbols = getSymbolsByUDA!(Row, Column!Row);
foreach(i; 0..symbols.length)
{
formatters ~= getUDAs!(symbols, Column!Row)[0].formatter;
}
return formatters;
}
---
--
More information about the Digitalmars-d-bugs
mailing list