[Issue 18410] New: [REG 2.079a] Conflict between overloads distinguished by parameter constness
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Feb 9 15:09:49 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=18410
Issue ID: 18410
Summary: [REG 2.079a] Conflict between overloads distinguished
by parameter constness
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Keywords: rejects-valid
Severity: regression
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: b2.temp at gmx.com
This code
```
struct Foo(T)
{
this(T){}
this(const T){}
}
alias S = Foo!(const int);
```
is not accepted since https://github.com/dlang/dmd/pull/7577. But curiously,
```
struct Bar
{
this(int){}
this(const int){}
}
```
is still accepted.
--
More information about the Digitalmars-d-bugs
mailing list