www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - Internal error in cod2.c

reply bearophile <bearophileHUGS lycos.com> writes:
ulong foo(ulong n) {
  if (n % 2 == 1)
    return n;
}
void main() {}

On DMD v1.023, gives:

Internal error: ..\ztc\cod2.c 411
Nov 22 2007
parent mk <mk-junk i-line.cz> writes:
bearophile wrote:
 On DMD v1.023, gives:
 
 Internal error: ..\ztc\cod2.c 411

Works for me, no error (Win XP, DMD 1.023)
Nov 22 2007