Problem using struct with copy constructor with betterC

jfondren julian.fondren at gmail.com
Sat Nov 6 18:31:40 UTC 2021


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/show_bug.cgi?id=20715

> BetterC is great, but a bit of a minefield to use.

The blame might be more on copy constructors, here. This also 
fails:

https://issues.dlang.org/show_bug.cgi?id=20365


More information about the Digitalmars-d-learn mailing list