[Issue 18606] New: [REG2.072] "cannot append type const(T) to type T[]" in .dup
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Mar 13 15:56:49 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=18606
Issue ID: 18606
Summary: [REG2.072] "cannot append type const(T) to type T[]"
in .dup
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status: NEW
Keywords: rejects-valid
Severity: regression
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: dlang-bugzilla at thecybershadow.net
///////// test.d /////////
struct S
{
struct T
{
int foo;
int[] bar;
}
struct M()
{
T[] arr;
this(this)
{
arr = arr.dup;
}
}
M!() m;
}
//////////////////////////
Introduced in https://github.com/dlang/dmd/pull/5500
--
More information about the Digitalmars-d-bugs
mailing list