Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compiling with GDC #17

Open
Numpsy opened this issue Apr 30, 2012 · 2 comments
Open

compiling with GDC #17

Numpsy opened this issue Apr 30, 2012 · 2 comments

Comments

@Numpsy
Copy link

Numpsy commented Apr 30, 2012

I just tried building the test code from issue #16 with GDC-MingW (The gcc-4.6.1-tdm64-1-gdc-7e1a98da2769-20120428-D2.058 build from https://bitbucket.org/goshawk/gdc/downloads), and got the error:

orange\orange\serialization\Serializer.d: In member function 'getSerializedReference':
orange\orange\serialization\Serializer.d:1561:0: error: cannot convert to a pointer type
orange\orange\serialization\Serializer.d: In member function 'addSerializedReference':
orange\orange\serialization\Serializer.d:1522:0: error: cannot convert to a pointer type

Where T is A[string].

@jacob-carlborg
Copy link
Owner

This compiles with DMD. So is this a problem with my code or GDC?

@Numpsy
Copy link
Author

Numpsy commented May 1, 2012

It looks like the issue is that

int[string] a;   
auto b = cast(void*) a;

compiles with DMD, but fails with

  error: cannot convert to a pointer type

on GDC.
I don't know if this is supposed to work or not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants