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 22070 - importC: Error: string literal is not an lvalue #12889

Merged
merged 1 commit into from
Jul 22, 2021

Conversation

WalterBright
Copy link
Member

Simpler fix than #12888

All we do is adjust the type as a special case. Then patch up the interpreter so it can handle strings as lvalues.

Test for static initialization, dynamic initialization, and CTFE.

@WalterBright WalterBright added the ImportC Pertaining to ImportC support label Jul 19, 2021
@dlang-bot
Copy link
Contributor

Thanks for your pull request, @WalterBright!

Bugzilla references

Auto-close Bugzilla Severity Description
22070 major importC: Error: string literal is not an lvalue

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#12889"

@dlang-bot dlang-bot merged commit da6b972 into dlang:master Jul 22, 2021
@WalterBright WalterBright deleted the fix22070-2 branch February 6, 2022 03:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-merge Bug Fix ImportC Pertaining to ImportC support
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants