http://d.puremagic.com/issues/show_bug.cgi?id=5708
kenn...@gmail.com changed:
What|Removed |Added
CC||kenn...@gmail.com
--- Comment #5
http://d.puremagic.com/issues/show_bug.cgi?id=5708
--- Comment #6 from kenn...@gmail.com 2011-03-06 00:53:53 PST ---
Further removing the Tuple:
import std.conv;
void ik(T)(T) {
enum a = to!string(foo) ~ to!string(bar);
static assert(a == foobar);
}
alias ik!int ik2;
void main() {
http://d.puremagic.com/issues/show_bug.cgi?id=5708
--- Comment #7 from kenn...@gmail.com 2011-03-06 01:02:07 PST ---
Further removing all Phobos dependency:
string b(string s) { return s; }
string a(string s) { return b(s); }
void ik(T)(T) {
enum p = a(foo);
enum q = a(bar);
http://d.puremagic.com/issues/show_bug.cgi?id=5708
bearophile_h...@eml.cc changed:
What|Removed |Added
CC||bearophile_h...@eml.cc
---
http://d.puremagic.com/issues/show_bug.cgi?id=5708
--- Comment #2 from bearophile_h...@eml.cc 2011-03-05 17:39:42 PST ---
More reduction:
import std.conv: to;
void main() {
int[int] aa;
foreach (v; aa)
to!string();
}
--
Configure issuemail:
http://d.puremagic.com/issues/show_bug.cgi?id=5708
--- Comment #3 from Jonathan M Davis jmdavisp...@gmx.com 2011-03-05 17:59:42
PST ---
Well, given the error, it involves creating a tuple, which none of the code
here is doing directly, so in theory, it should be possible to reduce it to
code
http://d.puremagic.com/issues/show_bug.cgi?id=5708
--- Comment #4 from bearophile_h...@eml.cc 2011-03-05 18:41:43 PST ---
(In reply to comment #3)
I assume that v in the foreach loop is a tuple of the key and value,
It's just a value, so it's an int.
--
Configure issuemail: