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 22974 - importC: D name mangling applied to extern variable… #13950

Merged
merged 1 commit into from
Apr 7, 2022

Conversation

WalterBright
Copy link
Member

… inside function

@WalterBright WalterBright added Review:Easy Review Feature:ImportC Pertaining to ImportC support labels Apr 5, 2022
@dlang-bot
Copy link
Contributor

Thanks for your pull request, @WalterBright!

Bugzilla references

Auto-close Bugzilla Severity Description
22974 normal importC: D name mangling applied to extern variable inside 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#13950"

@WalterBright WalterBright force-pushed the fix22974 branch 2 times, most recently from d8d803f to ce82e5f Compare April 5, 2022 07:26
@WalterBright
Copy link
Member Author

Error: cannot find input file `imports/test22974b.c`

The file test/runnable/imports/test22974b.c is there, what else can I do?

test/runnable/test22974.c Outdated Show resolved Hide resolved
extern int ccc();
extern int xxx;
xxx = ccc();
return 0;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

return xxx = ccc() - 1;

@WalterBright WalterBright merged commit b651cf1 into dlang:master Apr 7, 2022
@WalterBright WalterBright deleted the fix22974 branch April 7, 2022 03:04
@kinke
Copy link
Contributor

kinke commented Apr 30, 2022

This is again the wrong location for a fix and should be moved to the frontend. Like I did in #13446 previously.

kinke added a commit to kinke/dmd that referenced this pull request Apr 30, 2022
kinke added a commit to kinke/dmd that referenced this pull request Apr 30, 2022
kinke added a commit to kinke/dmd that referenced this pull request Apr 30, 2022
dlang-bot pushed a commit that referenced this pull request May 1, 2022
ibuclaw pushed a commit that referenced this pull request May 5, 2022
thewilsonator pushed a commit to thewilsonator/dmd that referenced this pull request May 26, 2022
thewilsonator pushed a commit to thewilsonator/dmd that referenced this pull request May 26, 2022
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.

5 participants