[Issue 4481] ICE(glue.c, !vthis->csym) or compiles, depending on the import statements order
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Sep 6 16:01:54 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=4481
Ola Østtveit <olaa81 at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |olaa81 at gmail.com
--- Comment #7 from Ola Østtveit <olaa81 at gmail.com> 2012-09-06 16:02:13 PDT ---
I got this with dmd 2.060, I got it reduced down to this:
-- main.d
module main;
import std.algorithm;
import collection;
--
-- collection.d
module collection;
import std.algorithm;
struct Collection
{
int[] collection;
void test(Collection[] coll)
{
auto element = collection[0];
auto result = coll.map!(v => v.collection[0] * element);
}
}
--
If the std.algorithm import is commented out in main.d it works fine, also if
element is replaced with collection[0] in the map lambda in collection.d
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list