Path: utzoo!attcan!uunet!husc6!mailrus!ames!umd5!purdue!decwrl!decvax!watmath!rbutterworth From: rbutterworth@watmath.waterloo.edu (Ray Butterworth) Newsgroups: comp.bugs.misc Subject: PCC and char x[]={sizeof("abc")}; Message-ID: <19100@watmath.waterloo.edu> Date: 27 May 88 16:39:30 GMT Distribution: comp Organization: U of Waterloo, Ontario Lines: 15 For some reason, tsize() in mip's pftn.c is called with garbage arguments when the type of the array is (char). The other types seem to work correctly. % cat xx.c int x[] = { sizeof("abc") }; long y[] = { sizeof("abc") }; char z[] = { sizeof("abc") }; BSD% cc xx.c "xx.c", line 3: compiler error: compiler takes size of function SUN% cc xx.c cc: Fatal error in /lib/ccom: Segmentation fault (core dumped)