Path: utzoo!utgpu!watmath!uunet!bu-cs!ncsuvx!ccpv1.ncsu.edu!rcb
From: rcb@ccpv1.ncsu.edu (Randy Buckland)
Newsgroups: gnu.g++.bug
Subject: g++ 1.35.0 signal 11
Message-ID: <3626@ncsuvx.ncsu.edu>
Date: 10 Aug 89 15:10:51 GMT
Sender: news@ncsuvx.ncsu.edu
Distribution: gnu
Lines: 39

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 
#include 
#include 


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