Ultrix CC bug?

Doug Gwyn gwyn at smoke.BRL.MIL
Sun Sep 17 09:13:10 AEST 1989


In article <199 at infovax.UUCP> bl at infovax.UUCP (Bj|rn Larsson) writes:
>test program causes cc to complain about the left-hand side of the marked
>expression.
>	  l = *((long *) p)++;	/* <<< Here! */

I would expect the compiler to complain about the RIGHT-hand side.
You're not permitted to apply ++ to an rvalue (which is what you
have after the cast is applied)!



More information about the Comp.bugs.4bsd.ucb-fixes mailing list