D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 15744 - [REG2.067] (SIGABRT) Error: overloadset t.Bar.__ctor is aliased to a function
Summary: [REG2.067] (SIGABRT) Error: overloadset t.Bar.__ctor is aliased to a function
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P1 regression
Assignee: No Owner
URL:
Keywords: ice, pull
Depends on:
Blocks: 15784
  Show dependency treegraph
 
Reported: 2016-03-02 15:12 UTC by Daniel Kozak
Modified: 2016-03-14 14:43 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Daniel Kozak 2016-03-02 15:12:42 UTC
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
}
Comment 1 Daniel Kozak 2016-03-02 15:13:48 UTC
In 2.066.1 it does not crash, but in 2.067.0 it crasch too
Comment 2 Temtaime 2016-03-10 14:33:23 UTC
I'm sorry bugzilla redirects in a strange way
Restored status to regression
Comment 3 Kenji Hara 2016-03-10 14:35:15 UTC
Introduced in:
https://github.com/D-Programming-Language/dmd/pull/4309
Comment 4 Kenji Hara 2016-03-10 14:52:27 UTC
I think the test case should be accepted properly. For the rejects-valid bug, I opened issue 15784.
Comment 6 github-bugzilla 2016-03-11 21:06:09 UTC
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
Comment 7 github-bugzilla 2016-03-14 14:43:27 UTC
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