[Issue 24603] New: Can copy from non-void array into void[] in safe code
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Jun 14 15:05:23 UTC 2024
https://issues.dlang.org/show_bug.cgi?id=24603
Issue ID: 24603
Summary: Can copy from non-void array into void[] in safe code
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status: NEW
Severity: enhancement
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: nick at geany.org
void main() @safe {
Object[] objs = [ new Object() ];
void[] arr1 = objs;
void[] arr2 = [ 123, 345, 567 ];
arr1[] = arr2[]; // error
arr1[] = [5]; // no error
}
PR incoming.
--
More information about the Digitalmars-d-bugs
mailing list