🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++.lib.bug
Article #231

Bug in output to cerr

#231
From: 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
*/
Technical Details
Message-ID: <1992Aug27.143640.8864@gca.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!gca.COM!boyle

Show Full Headers
Complete Article Headers
Newsgroups: gnu.g++.lib.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!gca.COM!boyle
From: boyle@gca.COM (David Boyle)
Subject: Bug in output to cerr
Message-ID: <1992Aug27.143640.8864@gca.com>
Keywords: cerr
Sender: gnulists@ai.mit.edu
Organization: GCA Corporation
Distribution: gnu
Date: Thu, 27 Aug 1992 14:36:40 GMT
Approved: bug-lib-g++@prep.ai.mit.edu
Lines: 24