🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: gnu.g++.lib.bug
1 messages
1 total messages Started by David Boyle Thu, 27 Aug 1992 14:36
Bug in output to cerr
#231
Author: David Boyle
Date: Thu, 27 Aug 1992 14:36
23 lines
932 bytes
/*
The following program gets a seg fault.  Commenting the first cerr output
stmt and uncommenting the second works fine.  Built on a Sun SPARCstation IPX
SunOs 4.1 with gcc2.1 and libg++2.0.
*/

#include <stream.h>

main()
{
	for (int i = 0; i < 1000; i++)
	{
		cerr << "foo: \"" << "bar" << "\"\n";   // breaks
//		cerr << "foo: \"bar\"\n";               // works
	}
}

/*
--
David Boyle                            ...uunet!gca!boyle  or  boyle@gca.com
GCA, a unit of General Signal          (508) 837-3869
Andover, MA  01810
*/
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads