http://d.puremagic.com/issues/show_bug.cgi?id=4481


Ola �sttveit <ola...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ola...@gmail.com


--- Comment #7 from Ola �sttveit <ola...@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: -------

Reply via email to