From owner-freebsd-bugs Mon May 27 01:23:15 1996 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id BAA23588 for bugs-outgoing; Mon, 27 May 1996 01:23:15 -0700 (PDT) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id BAA23578; Mon, 27 May 1996 01:23:00 -0700 (PDT) Received: (from bde@localhost) by godzilla.zeta.org.au (8.6.12/8.6.9) id SAA28182; Mon, 27 May 1996 18:14:35 +1000 Date: Mon, 27 May 1996 18:14:35 +1000 From: Bruce Evans Message-Id: <199605270814.SAA28182@godzilla.zeta.org.au> To: freebsd-bugs@freefall.freebsd.org, jkh@freefall.freebsd.org, scrappy@freefall.freebsd.org Subject: Re: gnu/373 Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >Synopsis: In response to admittedly bogus code, gcc emits an odd message >Responsible-Changed-From-To: freebsd-bugs->jkh >Responsible-Changed-By: scrappy >Responsible-Changed-When: Sun May 26 22:05:06 PDT 1996 >Responsible-Changed-Why: >the "bug" exists in 2.7.2 as well, so it seems to be a gcc bug and >not a FreeBSD bug...can we close it and hope its fixed in 2.7.3? Close it and "hope" it was never mentioned. There is no bug. The pointer dereference is valid. The error message is the same as for struct { int i; } foo; void bar(void) { if (foo) baz(); } The test would be better written as `if (foo != NULL)'. Then it is obvious that there is a binary operator `!='. Structs are invalid operands for '!='. Bruce