Wiki Roadmap Timeline Tickets New Ticket Source Search Help / Guide About Trac Login

Ticket #266 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

Bad codegen for Tango hello world

Reported by: Deewiant Assigned to: lindquist
Priority: blocker Milestone:
Component: backend Version: hg tip
Keywords: Cc:

Description

With revision 1257, the following simple program never outputs Hi:

import tango.io.Stdout;
void main() { Stdout("Hi").newline; }

Instead, it ends up reading input from the console. Giving it three bytes of input makes it happy and the program is terminated. Giving it EOF twice results in termination and the following output:

tango.core.Exception.IOException: end-of-flow whilst writing
tango.core.Exception.IOException: end-of-flow whilst writing

Redirecting stdin makes it still read from the console, amusingly enough.

It seems like some codegen has gone very wrong. I ran into this on x86-64 and ChristianK reproduced it on x86-32. Revision 1227 worked fine.

Change History

04/25/09 12:29:17 changed by lindquist

  • status changed from new to closed.
  • resolution set to fixed.

Fixed in rev [1262]

04/25/09 13:53:23 changed by Deewiant

  • status changed from closed to reopened.
  • resolution deleted.

Still broken for me with r1263.

04/26/09 05:30:13 changed by ChristianK

  • status changed from reopened to closed.
  • resolution set to fixed.

Fixed in [1265].

Copyright © 2008, LDC Development Team.