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

ImportC better error message for __int128 #14797

Merged
merged 1 commit into from
Jan 9, 2023

Conversation

WalterBright
Copy link
Member

This is a partial step towards fixing https://issues.dlang.org/show_bug.cgi?id=23614 by recognizing __int128 as a type and giving a better error message for it.

Not sure how to implement it fully.

@dlang-bot
Copy link
Contributor

Thanks for your pull request, @WalterBright!

Bugzilla references

Your PR doesn't reference any Bugzilla issue.

If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog.

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

@WalterBright WalterBright force-pushed the __int128 branch 2 times, most recently from a8ab652 to c9262bb Compare January 9, 2023 21:10
@maxhaton
Copy link
Member

maxhaton commented Jan 9, 2023

Since it doesn't require much additional semantic analysis it could be made to use cent which could then be lowered to a druntime call just before glue.

A flag would be needed in the FuncDeclaration to indicate that it cannot (yet) be CTFEd.

@WalterBright
Copy link
Member Author

@maxhaton yes, but the issue is then druntime would be required for ImportC programs.

@WalterBright WalterBright merged commit 14fd150 into dlang:master Jan 9, 2023
@WalterBright WalterBright deleted the __int128 branch January 9, 2023 22:21
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.

3 participants