can not find the error: Error: TypeInfo cannot be used with -betterC

Sebastiaan Koppe mail at skoppe.eu
Wed Jul 17 21:11:33 UTC 2019


On Wednesday, 17 July 2019 at 15:52:39 UTC, Newbie2019 wrote:
> when build my project with -betterC, it throw this error:
>
> Error: TypeInfo cannot be used with -betterC
>
> There is no location information about it,  how can I find what 
> code cause this ?

With ldc I often use -v to get the verbose output of the 
compiler. It will output what module it is compiling and in what 
stage. Often the module right before the error is the one you'll 
need to examine. I know, it stinks.

Most often it is one of: arrays, ~=, typeid, throw, new, toString.


More information about the Digitalmars-d-learn mailing list