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

fix Issue 22759 - ImportC: cannot modify const expression from derefe… #14621

Merged
merged 1 commit into from
Nov 6, 2022

Conversation

WalterBright
Copy link
Member

…rencing const pointer declared within function

This fix simply ignores const if the result would be a "const pointer to mutable".

@WalterBright WalterBright added the Feature:ImportC Pertaining to ImportC support label Nov 6, 2022
@dlang-bot
Copy link
Contributor

Thanks for your pull request, @WalterBright!

Bugzilla references

Auto-close Bugzilla Severity Description
22759 normal ImportC: cannot modify const expression from dereferencing const pointer declared within function.

Testing this PR locally

If you don't have a local development environment setup, you can use Digger to test this PR:

dub run digger -- build "master + dmd#14621"

compiler/src/dmd/cparse.d Outdated Show resolved Hide resolved
…rencing const pointer declared within function
@WalterBright WalterBright merged commit 797552c into dlang:master Nov 6, 2022
@WalterBright WalterBright deleted the Cconst branch November 6, 2022 20:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:ImportC Pertaining to ImportC support Severity:Bug Fix
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants