Am Tue, 06 Aug 2019 12:22:56 +0000 schrieb Stefanos Baziotis:

> On Tuesday, 6 August 2019 at 12:02:05 UTC, Boris Carvajal wrote:
>> At least gdc from gcc9 doesn't support static foreach, probably it's
>> reading imports from other d compiler install.
> 
> Yes it seems so. I installed LDC from source recently, maybe that made
> the conflict. I don't know how to fix it but thanks anyway.
> 
> Stefanos

gdc includes everything in /usr/include/d automatically. The assumption 
is that distributions will only install global D files there which are 
compiler-independent, just like in /usr/include.

Unfortunately dmd and/or ldc still seem to install their druntime/phobos 
D files there, so you likely need to remove these files from /usr/include/
d (the best way is to use the uninstall procedure matching the way you 
installed it).



-- 
Johannes

Reply via email to