On Tuesday, 17 April 2018 at 12:13:06 UTC, Mike Franklin wrote:
On Tuesday, 17 April 2018 at 05:33:53 UTC, Radu wrote:
This is very odd, as the following compiles:
---
struct S
{
this(this)
{
}
~this()
{
}
}
struct C
{
S s1;
}
---
If the scope failure would cause this then I assume it would
not work at all in any case.
Yeah! I think that is also a bug. So (at least right now in my
investigation) I think we first need to fix it so that it emits
the error even with a single statement, and then fix it so it
no longer generates the `scope(failure)` in -betterC.
Mike
Making it work without `scope(failure)` in -betterC mode should
be the goal of the fix, as the simple case (just one member)
doesn't generate any `scope(failure)`, at least the AST ouput
(https://run.dlang.io/is/l5CicG) doesn't contain it.
Thanks for looking into it!