home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: gnu.gcc.bug
- Path: 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
-
- 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:
-
-