-
-
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 #20617 Move constructors should not be POD #20618
base: master
Are you sure you want to change the base?
Conversation
Thanks for your pull request, @WalterBright! 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.
|
4cff3b3
to
5ba46cd
Compare
I have no idea what this useless message means:
|
What is the unit test executable? And why is there no message about what the error is? |
I think that refers to https://github.com/dlang/dmd/tree/master/compiler/test/unit those tests |
Sadly, run.d neglects to mention where it is getting the dmd compiler to run from, etc., and how that can be redirected. The error message comes from the file unit_test_runner.d, which suffers from a near total lack of documentation. It has a main(), but has no instructions on how to build it, or even what files are needed. We should go back to makefiles. |
Looking into it more closely https://github.com/dlang/dmd/blob/master/compiler/test/run.d#L132 is the command that is run when " |
e057731
to
306f79f
Compare
I have sadly come to the conclusion that proper move constructors will break existing code. It seems to happen too much. This means that proper move construction can only happen when there are also copy constructors, as having both a move and a copy constructor has been previously disallowed. This is not too great a burden, as having a move constructor without a copy constructor doesn't seem to make much sense. |
Blocked by #20616