Issue 8262 - ICE(mtype.c) alias this to alias of an expression tuple#4195
Issue 8262 - ICE(mtype.c) alias this to alias of an expression tuple#4195dlang-bot merged 2 commits intodlang:masterfrom
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.