June 27, 2023 [Issue 24018] New: array concatenation doesn't work with disabled default construction | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=24018 Issue ID: 24018 Summary: array concatenation doesn't work with disabled default construction Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: regression Priority: P1 Component: dmd Assignee: nobody@puremagic.com Reporter: default_357-line@yahoo.de ``` struct S { @disable this(); } void main() { S[] s; s = s ~ s; } ``` Results in ``` generated/linux/release/64/../../../../druntime/import/core/internal/array/concatenation.d(41): Error: struct `test.S` default construction is disabled test.d(10): Error: template instance `core.internal.array.concatenation._d_arraycatnTX!(S[], S[], S[])` error instantiating ``` -- |
Copyright © 1999-2021 by the D Language Foundation