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

Fails to build with gdc-12 #3

Open
baryluk opened this issue Apr 23, 2022 · 1 comment
Open

Fails to build with gdc-12 #3

baryluk opened this issue Apr 23, 2022 · 1 comment

Comments

@baryluk
Copy link

baryluk commented Apr 23, 2022

When building hunt-skeleton example

$ DC=gdc-12 dub run -v

../.dub/packages/hunt-extra-1.2.3/hunt-extra/source/hunt/collection/Radix.d:49:28: error: returning ‘cast(char*)(&this + 8L)’ escapes a reference to parameter ‘this’ [-Werror=deprecated]
   49 |         return cast(char*)(&this + 1);
      |                            ^
../.dub/packages/hunt-extra-1.2.3/hunt-extra/source/hunt/collection/Radix.d:49:28: note: perhaps annotate the function with ‘return’
   49 |         return cast(char*)(&this + 1);
@Heromyth
Copy link
Contributor

We'll have a test for this.

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