Date: Mon, 27 May 1996 18:14:35 +1000 From: Bruce Evans <bde@zeta.org.au> To: freebsd-bugs@freefall.freebsd.org, jkh@freefall.freebsd.org, scrappy@freefall.freebsd.org Subject: Re: gnu/373 Message-ID: <199605270814.SAA28182@godzilla.zeta.org.au>
next in thread | raw e-mail | index | archive | help
>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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199605270814.SAA28182>