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 22652 - importC: Braceless initializer of nested struct is … #14444

Merged
merged 1 commit into from
Sep 16, 2022

Conversation

WalterBright
Copy link
Member

…rejected

Had to move subStruct() and subArray() so they wouldn't be forward referenced. They weren't altered. The meat of the change starts at line 854, which adds the disambiguate test to decide whether to call subStruct() or not.

This concludes the current set of ImportC initializer bugs in bugzilla. There are still a couple issues not covered by bug reports yet.

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

Thanks for your pull request, @WalterBright!

Bugzilla references

Auto-close Bugzilla Severity Description
22652 normal importC: Braceless initializer of nested struct is rejected.

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

@RazvanN7 RazvanN7 merged commit e4d4e18 into dlang:master Sep 16, 2022
@WalterBright WalterBright deleted the fix22652 branch September 16, 2022 21:23
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
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants