[comp.lang.c++] weird problem

aw1r+@andrew.cmu.edu (Alfred Benjamin Woodard) (07/25/90)

If my information is correct I am using AT&T c++ 1.2 and I ran into this
problem trying to compile.

while (  ( (int tries=numberoftries()) != 0 ) )

does not compile but

int tries;
while ( (tries=numberoftries())!=0)

does. I have also tried many small variations on the problem and have
found that the problem lies in whether I have the "int" in the while
line. No matter where I put the parentheses. 

Why is this or is it a bug?


-ben