-
-
Notifications
You must be signed in to change notification settings - Fork 706
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 17381 - Checked format string is permissive after floating point argument #7916
Conversation
|
Strange. Seems to work on all computers here but fails in the online editor... PS: Works in the online editor too, when |
|
Meanwhile I found out, that the error was triggered by formatting floats not being CTFEable. Which isn't the case any more (at least for |
604a732 to
26bef18
Compare
|
Thanks for your pull request and interest in making D better, @berni44! We are looking forward to reviewing it, and you should be hearing from a maintainer soon.
Please see CONTRIBUTING.md for more information. If you have addressed all reviews or aren't sure how to proceed, don't hesitate to ping us with a simple comment. Bugzilla references
Testing this PR locallyIf you don't have a local development environment setup, you can use Digger to test this PR: dub run digger -- build "master + phobos#7916" |
|
The problem was the special handling of the ctfp-exception in For fixing this, I used a trick: Formatting NaNs doesn't use |
|
The online editor only provides already released compiler versions, so any changes done in a pull request won't be visible in the editor, until a new version is released. That said, as one of the maintainers of @dlang-tour, I am in favor of adding such feature, but it's not a small amount of work. |
You can choose "dmd-nightly", which sounds like it should be compiled once a day from the github sources. But it's 2.091 currently - see bugreport. And when choosing "all dmd compilers", it stops with 2.094. |
|
Rebased to restart the tests. |
On my computer there is no failure, but in the Online D Editor it reports failures since 2.074.1, but worked before.
I just added a unittest to find out on which computers this fails.