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 21982 - importC: Error: variable no definition of struct #12608

Merged
merged 1 commit into from
May 30, 2021

Conversation

ibuclaw
Copy link
Member

@ibuclaw ibuclaw commented May 29, 2021

PR #12594 introduced a regression that meant that struct definitions "lost" their members.

See https://github.com/dlang/dmd/pull/12594/files#diff-2fc171ca9f600bfba68ca8a62af0d4ec031d09cf65b9649900cca773379def6fL2843-R2860 for the introducing line.

Not immediately sure how to write a test for this, as the issue is reproducible with the existing cstuff1.c test. The difference between triggering and not triggering is whether you use dmd to compile the C source file directly.

Edit: Never-mind, got a test.

@WalterBright

@dlang-bot
Copy link
Contributor

dlang-bot commented May 29, 2021

Thanks for your pull request, @ibuclaw!

Bugzilla references

Auto-close Bugzilla Severity Description
21982 critical importC: Error: variable no definition of struct

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

@Geod24 Geod24 merged commit d480b5f into dlang:master May 30, 2021
@ibuclaw ibuclaw deleted the issue21982 branch May 30, 2021 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants