rcb@ccpv1.ncsu.edu (Randy Buckland) (08/10/89)
I also had found the signal 11/core dump problem with g++ 1.35.0. I have
isolated a code fragment that demonstrates the problem. To get the error,
you must use the "-finline-functions" switch. This happens on a vax running
ultrix 3.0
---------------
#include <std.h>
#include <stdio.h>
#include <time.h>
void do_date()
{
char date_string[80];
long clock;
clock = time(NULL);
strcpy (date_string, ctime(&clock));
date_string[strlen(date_string)-1] = ' '; /* Remove newline */
puts (date_string);
}
int main (int argc, char *argv[])
{
int i;
for (i=0; i<10; i++) {
do_date();
puts(" 08-00-03-00-02-01 08-00-03-00-02-01 ");
puts("08-00 ..Hi there..\n");
}
return 0;
}
--------------------
Randy Buckland
rcb@ncsuvx.ncsu.edu