template AddField(T) { T b; this(Args...)(T b, auto ref Args args) { this.b = b; this(args); } } template construcotrs() { int a; this(int a) { this.a = a; } } struct Bar { mixin construcotrs; mixin AddField!(string); } unittest { auto bar1 = Bar(5); auto bar2 = Bar("bar", 15); // line 31 }
In 2.066.1 it does not crash, but in 2.067.0 it crasch too
I'm sorry bugzilla redirects in a strange way Restored status to regression
Introduced in: https://github.com/D-Programming-Language/dmd/pull/4309
I think the test case should be accepted properly. For the rejects-valid bug, I opened issue 15784.
https://github.com/D-Programming-Language/dmd/pull/5515
Commits pushed to stable at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/1b4eefa55a3933ee214576612d1cbc81b5426d04 fix Issue 15744 - (SIGABRT) Error: overloadset t.Bar.__ctor is aliased to a function https://github.com/D-Programming-Language/dmd/commit/7e1a1a87fc0c31ddb8466242d363bfebd10dfbbb Merge pull request #5515 from 9rnsr/fix15744 [REG2.067] Issue 15744 - (SIGABRT) Error: overloadset t.Bar.__ctor is aliased to a function
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/1b4eefa55a3933ee214576612d1cbc81b5426d04 fix Issue 15744 - (SIGABRT) Error: overloadset t.Bar.__ctor is aliased to a function https://github.com/D-Programming-Language/dmd/commit/7e1a1a87fc0c31ddb8466242d363bfebd10dfbbb Merge pull request #5515 from 9rnsr/fix15744