[Issue 19234] New: betterC TypeInfo error when using slice copy on Structs
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Sep 8 04:00:51 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=19234
Issue ID: 19234
Summary: betterC TypeInfo error when using slice copy on
Structs
Product: D
Version: D2
Hardware: x86_64
OS: Windows
Status: NEW
Severity: normal
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: patric.dexheimer at gmail.com
//flags: -betterC -boundscheck=off
struct A{}
extern(C):
void main()
{
int* x;
x[0 .. 0] = x[0 .. 0];
//OK
A* a;
a[0 .. 0] = a[0 .. 0];
//Error: TypeInfo cannot be used with -betterC
}
--
More information about the Digitalmars-d-bugs
mailing list