aspell-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [aspell-devel] Ported to Solaris / Sun WorkShop 6 compiler


From: James Lee
Subject: RE: [aspell-devel] Ported to Solaris / Sun WorkShop 6 compiler
Date: Tue, 20 Jan 2004 14:04:11 GMT

On 19/01/04, 10:34:28, Flemming Frandsen <address@hidden>
wrote regarding RE: [aspell-devel] Ported to Solaris / Sun WorkShop 6
compiler:


> > I tried your patch but it fails here:
> >  CC -DHAVE_CONFIG_H -I. -I. -I../../../common -I../../../common -c
> > speller_impl.cpp  -KPIC -DPIC -o .libs/speller_impl.o
> > "speller_impl.cpp", line 243: Error: The operand "___LZLB" cannot be
> > assigned to.

> That's bizarre, the code in question is:

> if ((!check_if_valid || !c.mid_required()) // if check then
!s.mid_required()
>  && check(i, word_end, run_together_limit - 1, end_pos, words + 1))
>  return true;

> I can't see what could possibly be wrong with that code, the
> only thing I can think of is some sort of perverse operator
> overloading induced magic that goes wrong.

Err Possibly...
I suspect it's type overloading that goes wrong.  It works if the
logical expression is first assigned to a bool, then the bool is used
in the "if":

if ((!check_if_valid || !c.mid_required()) {
    bool tmp;
    tmp = check(i, word_end, run_together_limit - 1, end_pos, words + 1);
    if (tempbool) {
        return true;
    }
}

I suspect a problem with a difference between type casting to bool and
assigning a bool.

This happens in several places.

Using Forte8.
$ CC -V
CC: Sun C++ 5.5 Patch 113819-02 2003/09/05




James Lee.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]