Boost logo

Boost :

From: joel de guzman (djowel_at_[hidden])
Date: 2001-12-26 15:52:38


----- Original Message -----
From: "Fernando Cacciola" :

> {this message is being sent to borland.public.cppbuilder.language and to
the
> boost mailing list}
>
> Hello,
>
> Sometimes, if I use the boost tuples library (www.boost.org) I get:
>
> F1004 Internal compiler error at 0x127CB89 with base 0x1200000

Hi,

Spirit uses tuples extensively now. We've encountered the problem
before. I will quote some of the relevant stuff below. (Latest messages
first).

Hope this helps...

--Joel de Guzman
http://spirit.sf.net

----------------------------------------------------------------------------
--------------------------

> I've seen this before. The bug can be worked around by "using
> namespace boost" instead of the "using tuples::get", etc. (There are
> several using declarations together, right?
>
> (I haven't actually tried it, though, but that's what someone on the
> Borland newsgroup posted.)

Yes, that seems to work.

_____________________________________________

From: "Chris Uzdavinis" <chris_at_[hidden]>
Nicholas Charles Leippe <ncl3_at_[hidden]> writes:

> except for #include "boost/spirit/composite.hpp"
>
> Now, in boost/tuple/tuple.hpp, (un)commenting line 40 which is:
>
> using tuples::get;
>
> controls whether the error occurs.

I've seen this before. The bug can be worked around by "using
namespace boost" instead of the "using tuples::get", etc. (There are
several using declarations together, right?

(I haven't actually tried it, though, but that's what someone on the
Borland newsgroup posted.)

--
Chris
_______________________________________________
okay, I've isolated it this far, someone else will have to figure
out the rest.
System/software
Intel P3
Borland C++Builder 5.0 update pack 1 (build 12.34)
Win2k (build 2195)
flags from project file:
  <OPTIONS>
    <CFLAG1 value="-Od -Vx -X- -a8 -6 -b- -k -y -v -vi- -c -tW -tWM"/>
    <PFLAGS value="-N2build -N0build -$YD -$W -$O- -v -JPHNE -M"/>
    <RFLAGS value=""/>
    <AFLAGS value="/mx /w2 /zd"/>
    <LFLAGS value="-Ibuild -D&quot;&quot; -aa -Tpe -x -Gn -v"/>
  </OPTIONS>
latest boost 1.25.1
latest spirit 1.3.0
replaced numerics.[hi]pp with spirit 1.2.3 version
(although not needed for repro below)
Error msg:
[C++ Fatal Error] spirittest.cpp(488): F1004 Internal compiler error at
0x12508b2 with base 0x1200000
How to isolate it:
I have one file: spirittest.cpp with merely:
#include "boost/spirit/spirit.hpp"
In spirit.hpp comment out all of the #include directives
except for #include "boost/spirit/composite.hpp"
Now, in boost/tuple/tuple.hpp, (un)commenting line 40 which is:
using tuples::get;
controls whether the error occurs.
Hope this helps.
Nick
_______________________________________________
Spirit-general mailing list
Spirit-general_at_[hidden]
https://lists.sourceforge.net/lists/listinfo/spirit-general

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk