-
-
Notifications
You must be signed in to change notification settings - Fork 606
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
Issue 8262 - ICE(mtype.c) alias this to alias of an expression tuple #4195
Conversation
I am not comfortable with changes that "merely avoid the crash". It suggests not understanding what the actual problem is. I'd like Kenji to review this, the RECtracing thing is his design. |
I'm not happy with it, either. The problem is that alias this to expression or mixed tuples is not well defined yet, though it sometimes works. When compiled with dlang/druntime#1057, this test crashes: https://github.com/D-Programming-Language/dmd/blob/master/test/runnable/aliasthis.d#L1269 What is supposed to happen when aliasing to |
Is this a comment about the D language specification? |
@rainers status? |
check return of aliasthisOf
Thanks for your pull request, @rainers! Bugzilla references
|
redone now and added test case. This still just follows the example of other code ignoring alias this if |
@rainers please mind the test failures thx! |
https://issues.dlang.org/show_bug.cgi?id=8262
This PR doesn't change anything about what should happen with a tuple being aliased to "this", but merely avoids the crash. The net result seems to be that implicite conversions don't take place.
This is blocking dlang/druntime#1057 ATM.