Delete hack to always do codegen for templates if -debug is used#10968
Delete hack to always do codegen for templates if -debug is used#10968dlang-bot merged 2 commits intodlang:masterfrom
Conversation
b1496a9 to
12d612b
Compare
|
Blocked by dlang/phobos#7439 |
12d612b to
2486aa6
Compare
|
Thanks for your pull request and interest in making D better, @atilaneves! 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 referencesYour 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 locallyIf you don't have a local development environment setup, you can use Digger to test this PR: dub run digger -- build "master + dmd#10968" |
|
This caused a ICE to appear in our code. |
|
also why are you deleting this tests ... they should still pass after this PR? |
Is it possible to isolate the code to a reduced example? |
possible. yes. My comment is less about a particular example, and more about doing invasive changes in poorly understood systems ... |
They weren't very good tests and not relevant anymore. They were testing that there were no linker failures with Phobos code that doesn't even exist anymore. |
|
This has caused a regression https://issues.dlang.org/show_bug.cgi?id=15985 |
Issue was created in 2016, this PR was created in 2020. Unless I've forgotten how time works, no it didn't. :-) |
This PR deletes code that special cases -debug/-unittest when considering whether or not to do codegen for templates in non-root modules. It also deletes a dmd test that's no longer necessary due to Phobos having been updated in the meanwhile (there used to be a debug block in std.range that caused linker errors due to template instantiation with -debug).
Relevant issues and PR:
https://issues.dlang.org/show_bug.cgi?id=12661
https://issues.dlang.org/show_bug.cgi?id=15230
#4944