www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Surprising ICE

reply Manu <turkeyman gmail.com> writes:
Can I please bring attention to this issue:
https://issues.dlang.org/show_bug.cgi?id=19482

I'm doing a hack-athon in the office, and some colleagues are taking D
for a spin.
They have encountered this issue on multiple counts.

It would be really great to have a fix in a hurry, then I can do a
local DMD build and we can move on without workarounds.
Dec 12 2018
parent reply Nicholas Wilson <iamthewilsonator hotmail.com> writes:
On Wednesday, 12 December 2018 at 23:12:20 UTC, Manu wrote:
 Can I please bring attention to this issue: 
 https://issues.dlang.org/show_bug.cgi?id=19482

 I'm doing a hack-athon in the office, and some colleagues are 
 taking D
 for a spin.
 They have encountered this issue on multiple counts.

 It would be really great to have a fix in a hurry, then I can 
 do a local DMD build and we can move on without workarounds.
If you like dancing on glass the quickest, dirtiest fix is to comment out https://github.com/dlang/dmd/blob/dff0138467ec451ac64e1dac392a1a9648ee2523/src/dmd/cppm nglewin.d#L132-L133 since a static foreach iterable won't be subject to the linker.
Dec 12 2018
parent Manu <turkeyman gmail.com> writes:
On Wed, Dec 12, 2018 at 4:05 PM Nicholas Wilson via Digitalmars-d
<digitalmars-d puremagic.com> wrote:
 On Wednesday, 12 December 2018 at 23:12:20 UTC, Manu wrote:
 Can I please bring attention to this issue:
 https://issues.dlang.org/show_bug.cgi?id=19482

 I'm doing a hack-athon in the office, and some colleagues are
 taking D
 for a spin.
 They have encountered this issue on multiple counts.

 It would be really great to have a fix in a hurry, then I can
 do a local DMD build and we can move on without workarounds.
If you like dancing on glass the quickest, dirtiest fix is to comment out https://github.com/dlang/dmd/blob/dff0138467ec451ac64e1dac392a1a9648ee2523/src/dmd/cppm nglewin.d#L132-L133 since a static foreach iterable won't be subject to the linker.
Good idea! :)
Dec 12 2018