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.

Reply via email to