This is the mail archive of the
libstdc++@sourceware.cygnus.com
mailing list for the libstdc++ project.
Problem using bitset bit access
- To: libstdc++ at sourceware dot cygnus dot com
- Subject: Problem using bitset bit access
- From: Meenaradchagan Vishnu <mvishnu at fore dot com>
- Date: Mon, 4 Oct 1999 12:10:51 -0400 (EDT)
- Reply-To: Meenaradchagan Vishnu <mvishnu at fore dot com>
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