🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #875

GCC 1.36 long long bug: ``if (x--)'' not compiled correctly

#875
From: Paul Eggert
Date: Tue, 16 Jan 1990 05:07
13 lines
664 bytes
The following program should yield exit status 0.
When compiled under GCC 1.36, it yields 1.

	long long x;
	main()
	{
		if (x--)
			return 255;
		return 0;
	}

SPARCstation 1 + SunOS 4.0.3c
Same results on Sun-3 + SunOS 4.0.3
Technical Details
Message-ID: <9001160507.AA01142@burns.twinsun.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!burns.twinsun.com!eggert

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!burns.twinsun.com!eggert
From: eggert@burns.twinsun.com (Paul Eggert)
Newsgroups: gnu.gcc.bug
Subject: GCC 1.36 long long bug: ``if (x--)'' not compiled correctly
Message-ID: <9001160507.AA01142@burns.twinsun.com>
Date: 16 Jan 90 05:07:43 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 13