DMD 1.030 and 2.014 releases
Walter Bright
newshound1 at digitalmars.com
Sat May 17 11:09:34 PDT 2008
Ary Borenszweig wrote:
> Walter, I think I've found a potential bug in DMD 1.030 while porting it
> to Descent.
>
> Take a look at cast.c, Expression *BinExp::typeCombine(Scope *sc), lines
> 1371 and 1374:
>
> /* Pick 'tightest' type
> */
> ClassDeclaration *cd1 = tc1->sym->baseClass;
> ClassDeclaration *cd2 = tc1->sym->baseClass;
>
> shouldn't the second line use tc2 instead of tc1?
Yes. Thanks for letting me know about this. I wonder how it passed the
test case!
More information about the Digitalmars-d-announce
mailing list