-
-
Notifications
You must be signed in to change notification settings - Fork 609
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 20324 - Calling __traits(getUnitTests) on a template causes compiler segfault #10533
Conversation
|
Thanks for your pull request and interest in making D better, @clYd3r! 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 fetch digger
dub run digger -- build "stable + dmd#10533" |
|
It would be better to say what the type passed is. |
|
I have doubts anyway. I used a tester based on the trait but my own code doesn't contain any inner unittest block so I need to verify one or two things. TLDR; don't merge fast... there's two or three weeks before next bug fix release anyway. |
|
Applied a label, feel free to ping to have it removed. |
|
I've changed the approach and decided not to issue an error. |
… compiler segfault
|
ping for the removal of the blocked "label", checks done. |
That might be a surprising behavior. Can you expand on why you went with this approach ? Adding the explanation in the commit message would be great too. |
|
|
Hmm, I wanted to close and reopen to restart the autotester, but it seems like the branch was deleted and I cannot reopen. It seems like the github account was deleted. |
The idea is that you cannot get the tests of a partially specialized type. unittest blocks inside a partially specialized type may use or not the template parameters so allowing them would require a complex analysis.