This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: STL bitset



Hi Jeff: 
	thanks a lot! Your help is greatly  appreciated! -pasha

Jeff Sparkes writes:
 > Pasha Murat wrote:
 > 
 > > here is another problem report : I'm trying to compile
 > > a simple code using STL bitset class (available in snapshots since recently)
 > > on SGI IRIX 6.2.
 > > ------------------------------------------------------------------------------
 > > /data69/upgrade/murat>cat  bugs/egcs/bug_bitset.cc
 > > #include <limits.h>
 > > #include <bitset>
 > >
 > > class  A {
 > >   bitset<96>  mask;
 > > public:
 > >   A(){}
 > >   ~A(){}
 > >   void set_mask(int i) {mask[i] = 1; }
 > > };
 > > ------------------------------------------------------------------------------
... skip the diagnostics (the code apparently doesn't compile... -p.m.) ...
 > You can get this to work by adding "public:" just before line 541.  I suspect that
 > the name which are imported there are not getting the access rights exactly the same as if they were defined there.  I looked at the code, but couldn't see anything obvious.  It would have to be pretty obvious for me to find it. :-)
 > 
 > With that one change, I'm able to use bitset without problems.  It's obviously just a workaround.  I'm going to put together a more detailed bug report someday...


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]