Path: utzoo!mnetor!uunet!mcvax!ukc!warwick!jeff From: jeff@warwick.UUCP (Jeff Smith) Newsgroups: comp.lang.c++ Subject: cfront runs too fast (and fix) Message-ID: <586@ubu.warwick.UUCP> Date: 7 Dec 87 14:49:10 GMT Organization: Computer Science, Warwick University, UK Lines: 27 Keywords: cfront fix If you can persuade cfront to finish in less than a second with the +S option on, then the calculation of the number of lines processed per second generates a divide-by-zero! On a SUN-3 with 1.2.1, typing cfront +S 0 ? Nline/(stop_time-start_time) : Nline); #else !CFRONTTOOFASTFIX stop_time-start_time, Nline/(stop_time-start_time) ); #endif CFRONTTOOFASTFIX fflush(stderr); Jeff warwick!jeff PS. Does anyone have a fix to simpl.c for the null dereference on Pfct f = Pfct(Pptr(q->tp)->typ) caused by the pointer to member function problem? The problem's been noted a couple of times in comp.lang.c++, by Paul Calder and others..