Skip to content

Comments

Issue 17712 - Add tests & Revert std.conv.toChars workaround for dmd link error#7536

Closed
ntrel wants to merge 1 commit intodlang:masterfrom
ntrel:text-toChars
Closed

Issue 17712 - Add tests & Revert std.conv.toChars workaround for dmd link error#7536
ntrel wants to merge 1 commit intodlang:masterfrom
ntrel:text-toChars

Conversation

@ntrel
Copy link
Contributor

@ntrel ntrel commented Jun 19, 2020

Draft for now. Once the test cases in dlang/dmd#11300 are merged This pull now contains the tests, which use Phobos. I had to edit test/run.sh to run them.

The dmd bug for the b17712_c13.d test case has been fixed in dlang/dmd#9636.
The original test case is still unfixed in dmd. The workaround in std.conv.text, added in #6659 causes unnecessary allocations when there are multiple arguments and >0 integer arguments.

Undefined reference to std.conv.toChars!(10, char, 1, uint).toChars(uint):
https://issues.dlang.org/show_bug.cgi?id=17712

@ntrel ntrel changed the title Issue 17712 - Revert std.conv.toChars workaround for dmd link error Issue 17712 - Add tests & Revert std.conv.toChars workaround for dmd link error Jun 20, 2020
@ntrel ntrel force-pushed the text-toChars branch 4 times, most recently from 5003b06 to bd543a6 Compare June 21, 2020 07:56
b17712.d is not fixed in dmd, Phobos workaround:
2f20661
dlang#6659

b17712_c13.d was apparently fixed in dmd:
c2eefb0d8d850715f492197b0b1a033d9ad5411a
dlang/dmd#9636

Add very basic test facility for independent test files.
@ntrel
Copy link
Contributor Author

ntrel commented Jun 25, 2020

Closing this, as the original test case actually fails, even without reverting the workaround (as shown by the test failures). That workaround now seems to be not working and should probably be reverted.

@ntrel ntrel closed this Jun 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant