www.digitalmars.com         C & C++   DMDScript  

D.gnu - static foreach in gdc

reply Jean-Louis Leroy <jl leroy.nyc> writes:
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.
Feb 07
next sibling parent reply Mathias Lang <pro.mathias.lang gmail.com> writes:
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.
Feb 07
next sibling parent Iain Buclaw <ibuclaw gdcproject.org> writes:
‐‐‐‐‐‐‐ 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
Feb 07
prev sibling parent Jean-Louis Leroy <jl leroy.nyc> writes:
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`.
Feb 07
prev sibling parent reply Elronnd <elronnd elronnd.net> writes:
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.
Feb 08
parent Iain Buclaw <ibuclaw gdcproject.org> writes:
LS0tLS0tLS0gT3JpZ2luYWwgTWVzc2FnZSAtLS0tLS0tLQpPbiA4IEZlYiAyMDIwLCAyMjoyNSwg
RWxyb25uZCB2aWEgRC5nbnUgPCBkLmdudUBwdXJlbWFnaWMuY29tPiB3cm90ZToKT24gRnJpZGF5
LCA3IEZlYnJ1YXJ5IDIwMjAgYXQgMTE6NTE6MzYgVVRDLCBKZWFuLUxvdWlzIExlcm95Cndyb3Rl
Ogo+IFdoYXQncyB0aGUgc2l0dWF0aW9uIHdpdGggYHN0YXRpYyBmb3JlYWNoYCBvbiBnZGM/IFdo
ZW4gSQo+IGluc3RhbGwgaXQgdXNpbmcgaW5zdGFsbC5zaCBmcm9tCj4gaHR0cHM6Ly9kbGFuZy5v
cmcvaW5zdGFsbC5odG1sLCBJIGdldCA0LjguNSwgd2hpY2ggZG9lcyBub3QKPiBzdXBwb3J0IGBz
dGF0aWMgZm9yZWFjaGAuIFRoYXQgaXMgYWxzbyB0aGUgdmVyc2lvbiB0aGF0IGlzCj4gaW5zdGFs
bGVkIG9uIHRyYXZpcy1jaS5vcmcuCllvdSBjYW4gdHJ5IGNvbXBpbGluZyB0aGlzIHZlcnNpb24g
ZnJvbSBzb3VyY2U6Cmh0dHBzOi8vZ2l0aHViLmNvbS9tb29uLWNoaWxsZWQvZ2RjLWQyMDg5Ckl0
IGlzIGEgV0lQIHRhcmdldGluZyBnY2MgMTAuIERpZG4ndCBtYWtlIGl0OyBJIGZvdW5kIGl0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