4.2 cc/lint strangeness (pcc)
Dave Edwards
edwards at felix.UUCP
Thu Mar 14 07:04:15 AEST 1985
I was wondering if someone could help me understand what is going
on with some problems with pcc that I am having. I am running on
4.2BSD.
If I have a file which contains:
unsigned a = (unsigned)5 >> 1;
unsigned b = 5 >> 1;
then cc gives me the complaint:
line 1: compiler error: expression causes compiler loop: try
simplifying
and lint complains of an illegal initialization on that line. The
construct on line 2 doesn't cause any problems. Just declaring an
unsigned variable and doing the assignment as a statement also causes
no problems.
Also, I have a non-pcc based compiler that has no problem with this.
What gives? Is this a known bug?
Thanks,
Dave Edwards
FileNet Corp.
{ucbvax,decvax,ihnp4,sdcrdcf}!trwrb!felix!edwards
More information about the Comp.unix.wizards
mailing list