Thread overview
static foreach in gdc
Feb 07, 2020
Jean-Louis Leroy
Feb 07, 2020
Mathias Lang
Feb 07, 2020
Iain Buclaw
Feb 07, 2020
Jean-Louis Leroy
Feb 08, 2020
Elronnd
Feb 09, 2020
Iain Buclaw
February 07, 2020
Hi,

What's the situation with `static foreach` on gdc? When I install it using install.sh from https://dlang.org/install.html, I get 4.8.5, which does not support `static foreach`. That is also the version that is installed on travis-ci.org.

February 07, 2020
On Friday, 7 February 2020 at 11:51:36 UTC, Jean-Louis Leroy wrote:
> Hi,
>
> What's the situation with `static foreach` on gdc? When I install it using install.sh from https://dlang.org/install.html, I get 4.8.5, which does not support `static foreach`. That is also the version that is installed on travis-ci.org.

Iain is currently backporting static foreach for GCC10, I believe.
4.8.5 won't get you far, you should at least use GCC-9.2.0 which include the 2.076.0 frontend plus a lot of backports.
February 07, 2020
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Friday, 7 February 2020 15:47, Mathias Lang via D.gnu <d.gnu@puremagic.com> wrote:

> On Friday, 7 February 2020 at 11:51:36 UTC, Jean-Louis Leroy wrote:
>
> > Hi,
> > What's the situation with `static foreach` on gdc? When I
> > install it using install.sh from
> > https://dlang.org/install.html, I get 4.8.5, which does not
> > support `static foreach`. That is also the version that is
> > installed on travis-ci.org.
>
> Iain is currently backporting static foreach for GCC10, I believe. 4.8.5 won't get you far, you should at least use GCC-9.2.0 which include the 2.076.0 frontend plus a lot of backports.


Yes for both points.

--
Iain


February 07, 2020
On Friday, 7 February 2020 at 14:47:40 UTC, Mathias Lang wrote:

> 4.8.5 won't get you far, you should at least use GCC-9.2.0 which include the 2.076.0 frontend plus a lot of backports.

How comes `install.sh gdc` does not fetch a more recent version? This is probably what travis-ci.org uses as well.

On ubuntu 18.04 the latest available gdc is gdc-8. At least that one has __traits(getParameterStorageClasses, ...)` and it can compile my openmethods library if I use a workaround for the absence of `static foreach`.





February 08, 2020
On Friday, 7 February 2020 at 11:51:36 UTC, Jean-Louis Leroy wrote:
> What's the situation with `static foreach` on gdc? When I install it using install.sh from https://dlang.org/install.html, I get 4.8.5, which does not support `static foreach`. That is also the version that is installed on travis-ci.org.

You can try compiling this version from source: https://github.com/moon-chilled/gdc-d2089

It is a WIP targeting gcc 10.  Didn't make it; I found it, and then it disappeared.  Once GCC 10 proper comes out, use that.
February 09, 2020
-------- Original Message --------
On 8 Feb 2020, 22:25, Elronnd via D.gnu < d.gnu@puremagic.com> wrote:
On Friday, 7 February 2020 at 11:51:36 UTC, Jean-Louis Leroy
wrote:
> What's the situation with `static foreach` on gdc? When I install it using install.sh from https://dlang.org/install.html, I get 4.8.5, which does not support `static foreach`. That is also the version that is installed on travis-ci.org.
You can try compiling this version from source:
https://github.com/moon-chilled/gdc-d2089
It is a WIP targeting gcc 10. Didn't make it; I found it, and
then it disappeared. Once GCC 10 proper comes out, use that.

The branch is still there, it is just under refs/git-old/heads/ so that it isn't default pulled (svn branches are under refs/svn-old respectively).

Since the conversion from svn to git is complete, we'll be going through the application process to get a devel/gdc branch setup.

Iain.