This is the mail archive of the libstdc++@sourceware.cygnus.com mailing list for the libstdc++ project.


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

Problem using bitset bit access



I am running gcc-2.95.1 on sparc solaris.  Code which access the bit
of bitset gives the following compile time error:

[leapfrog:~/BFS] make unstriper.o
/usr/local/bin/g++ -g -ftemplate-depth-25  -c -o unstriper.o unstriper.cc
/usr/local/lib/gcc-lib/sparc-sun-solaris2.5.1/2.95.1/../../../../include/g++-3/b
itset: In method `bitset<13,long unsigned 
int>::reference::reference(bitset<13,long unsigned int> &, unsigned int)':
/usr/local/lib/gcc-lib/sparc-sun-solaris2.5.1/2.95.1/../../../../include/g++-3/b
itset:751:   instantiated from `bitset<13,long unsigned int>::operator 
[](unsigned int)'
unstriper.cc:238:   instantiated from here
/usr/local/lib/gcc-lib/sparc-sun-solaris2.5.1/2.95.1/../../../../include/g++-3/b
itset:377: `long unsigned int & _Base_bitset<1,long unsigned 
int>::_M_getword(unsigned int)' is inaccessible
/usr/local/lib/gcc-lib/sparc-sun-solaris2.5.1/2.95.1/../../../../include/g++-3/b
itset:581: within this context
make: *** [unstriper.o] Error 1
[leapfrog:~/BFS]

Any help resolving this problem is much appreciated.

Meenan Vishnu
 


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