www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - main return again

reply bearophile <bearophileHUGS lycos.com> writes:
I may have found my 44th bug in DMD:

void main() { return "a"; }

It outputs to me, on Windows:
Internal error: ../ztc/cgcod.c 1479

Bye,
bearophile
Jun 25 2009
parent reply Jarrett Billingsley <jarrett.billingsley gmail.com> writes:
On Thu, Jun 25, 2009 at 6:11 PM, bearophile<bearophileHUGS lycos.com> wrote:
 I may have found my 44th bug in DMD:

 void main() { return "a"; }

 It outputs to me, on Windows:
 Internal error: ../ztc/cgcod.c 1479
How about instead of counting them up and posting them on the newsgroups, you put them in Bugzilla? Or are you just completely thick?
Jun 25 2009
parent reply Ary Borenszweig <ary esperanto.org.ar> writes:
Jarrett Billingsley wrote:
 On Thu, Jun 25, 2009 at 6:11 PM, bearophile<bearophileHUGS lycos.com> wrote:
 I may have found my 44th bug in DMD:

 void main() { return "a"; }

 It outputs to me, on Windows:
 Internal error: ../ztc/cgcod.c 1479
How about instead of counting them up and posting them on the newsgroups, you put them in Bugzilla? Or are you just completely thick?
And you should say which DMD version you used. I tried it with 2.030 and I didn't get the error.
Jun 26 2009
Ary Borenszweig:
 you should say which DMD version you used. I tried it with 2.030 and 
 I didn't get the error.
Right, sorry. I am using DMD v1.042, on Windows XP. The bug is present in DMD v1.026 too: http://codepad.org/os02XoRn Bye, bearophile
Jun 26 2009