Compiler bug ?
bearophile
bearophileHUGS at lycos.com
Fri May 17 07:47:36 PDT 2013
Temtaime:
> This code doesn't compiles with an error:
> Error: 'b' is not of arithmetic type, it is a B
>
> If i remove k++, then it's OK. It seems that compiler omitting
> the function if there an error in it.
It's a bad error message, but it's correct, because k doesn't
exists. This error message is so bad because opBinary is a
template.
In Bugzilla there is a request for an improvement related to this:
http://d.puremagic.com/issues/show_bug.cgi?id=9715
Bye,
bearophile
More information about the Digitalmars-d-learn
mailing list