Installed with sudo apt-get install gdc in Ubuntu 18.04 - Can't compile a simple program.
Boris Carvajal
boris2.9 at gmail.com
Tue Aug 6 12:02:05 UTC 2019
On Tuesday, 6 August 2019 at 11:45:50 UTC, Stefanos Baziotis
wrote:
> Hello everyone,
>
> I just installed GDC with sudo apt-get install gdc and I can't
> compile a simple hello world program. I get e.g. static foreach
> errors:
>
> /usr/local/include/d/core/internal/hash.d:333:16: error: basic
> type expected, not foreach
> static foreach (i; 0 .. T.sizeof / size_t.sizeof)
>
> Any idea? Before about a month I used to compile hundeds of
> lines but I don't remember how..
>
> Thanks,
> Stefanos
At least gdc from gcc9 doesn't support static foreach, probably
it's reading imports from other d compiler install.
More information about the D.gnu
mailing list