Hylafax Mailing List Archives

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

Re: [hylafax-users] cvs-20000604 -> g++ internal compiler error



At 04:24 PM 8/12/00 +0200, Giulio Orsero wrote:
>On Fri, 11 Aug 2000 21:43:12 +1000, you wrote:
>
> >the fxStrDictIter class).....perhaps try rewriting the method might avoid
> >the bug, perhaps something like:
> >fxStr
> >MsgFmt::mapHeader(const fxStr& name)
> >{
> >     fxStrDictIter hi(headMap);
> >     while (hi.notDone()) {
>I've tried this, but the error persists.
>
> >...it also might be having trouble creating fxStrDictIter on the stack,
> >perhaps also try creating it on the heap with 'new' and later 'delete'.
>Can't follow you here :-)

Try something like:

fxStr
MsgFmt::mapHeader(const fxStr& name)
{
     fxStrDictIter hi = new fxStrDictIter(headMap);
     while (hi.notDone()) {
         if (strcasecmp(hi.key(), name) == 0) {
             delete hi;
             return (hi.value());
         }
         hi++;
     }
     delete hi;
     return name;
}

...if it does not work(kind of likely), then the next thing i would suspect 
is the fxStrDictIter class itself(which is a bunch of macros i think) is 
somehow upsetting the compiler.

- Robert



____________________ HylaFAX(tm) Users Mailing List _______________________
 To unsub: mail -s unsubscribe hylafax-users-request@hylafax.org < /dev/null



Home
Report any problems to webmaster@hylafax.org

HylaFAX is a trademark of Silicon Graphics Corporation.
Internet connectivity for hylafax.org is provided by:
VirtuALL Private Host Services