Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!samsung!zaphod.mps.ohio-state.edu!mips!apple!tahoe!bally!pete From: pete@bally.Bally.COM (Pete Gregory) Newsgroups: comp.unix.aix Subject: AIX PS/2 C-compiler bug (or is it me?)? Message-ID: <233@bally.Bally.COM> Date: 1 Mar 90 19:55:47 GMT Organization: Bally Systems, Reno, NV Lines: 45 Hi - I have AIX PS/2 (the latest and greatest: updates of C compiler and base operating system as of 2/12/90), but I am unable to compile the following simple program: main() { double d; long l; short s; int i; char *c; c = (char *) l; c = (char *) s; c = (char *) i; c = (char *) d; } ...I get the following compile-time diagnostic: 14. c = (char *) s; 15. c = (char *) d; <<<<< ****** Error number 137 in line 14 of file test.c ***** ****** Illegal type conversion ***** 1 errors. 0 warnings. 16 lines. File test.c ...BTW, this program compiles fine on AIX 2.2.1 on the RT (6150/125). This code is an isolation of code in a much larger program. The exact same error occurs there, too (on the PS/2; RT is okay and the program WORKS). Any ideas? Thanks....... Pete Gregory | uucp: uunet!bally!pete ________ Software Engineer | domain: pete@bally.bally.com / _ \ Bally Systems, Inc. | phone: 702-323-6156 x882 / /|| \ \ 255 Bell St. | FAX: 702-323-5997 | |\/ || _ | Reno, NV 89503 | | | || | | \ ||__/ / \________/ '71 MGB