[gnu.gdb.bug] bug with void pointer subtraction.

paul@UUNET.UU.NET (Paul Hudson) (04/18/89)

The line 

print (void*)1 - (void*)0

causes gdb3.1 (sun3,os4) to give an arithmetic exception.  Presumably
it's trying to divide the difference by the size of the thing pointed
to, which is zero (although gcc thinks it's one, sometimes ;-).

Paul Hudson 

Snail mail: Monotype ADG	Email:	...!ukc!acorn!moncam!paul
	    Science Park,		paul@moncam.co.uk
	    Milton Road,	"Sun Microsysytems:
	    Cambridge,		 The Company is Arrogant (TM)"
	    CB4 4FQ