Re: Problem using struct with copy constructor with betterC

2021-11-06 Thread jfondren via Digitalmars-d-learn
On Saturday, 6 November 2021 at 17:24:07 UTC, tchaloupka wrote: When built with `-betterC` switch (dmd as ldc2 works with it). I get just: ``` Error: `TypeInfo` cannot be used with -betterC ``` Well imagine getting this useful info in a large codebase :/ Looks like https://issues.dlang.org/sh

Problem using struct with copy constructor with betterC

2021-11-06 Thread tchaloupka via Digitalmars-d-learn
After a long fiddling with a code that won't compile I've got this test case: ```D struct Foo { this(ref return scope Foo rhs) {} ~this() {} } struct Bar { @disable this(this); Foo[2] foos; } extern (C) void main() {} ``` When built with `-betterC` switch (dmd as ldc2 works wi