Article View: gnu.gcc.bug
Article #1615code with mixed pointer types fails to compile
From: Thomas A Peterson
Date: Fri, 08 Jan 1993 17:18
Date: Fri, 08 Jan 1993 17:18
21 lines
842 bytes
842 bytes
Program: gcc
Version: 2.3.3
Machine: SPARCstation IPX
OS: SunOS4.1.1
Description:
The following code fails to compile.
aristotle: cat GNU_FAIL.c
main()
{
int a;
char *dest;
unsigned char *d;
a = dest - d;
}
aristotle: /src/packages/gnu/gcc/gcc-2.3.3/xgcc -B/src/packages/gnu/gcc/gcc-2.3.3/ -c GNU_FAIL.c
GNU_FAIL.c: In function `main':
GNU_FAIL.c:7: invalid operands to binary -
aristotle:
Technical Details
Message-ID:
<9301081718.AA26975@aristotle.src.honeywell.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!src.honeywell.com!tapShow Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.bug Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!src.honeywell.com!tap From: tap@src.honeywell.com (Thomas A Peterson) Subject: code with mixed pointer types fails to compile Message-ID: <9301081718.AA26975@aristotle.src.honeywell.com> Sender: gnulists@ai.mit.edu Organization: GNUs Not Usenet Distribution: gnu Date: Fri, 8 Jan 1993 17:18:41 GMT Approved: bug-gcc@prep.ai.mit.edu Lines: 22