www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/06/26/14:24:19

From: llewelly AT dbritsch DOT dsl DOT xmission DOT com
Date: Mon, 26 Jun 2000 06:25:56 -0600 (MDT)
To: pavenis AT lanet DOT lv
Cc: Dennis Yelle <dennis51 AT jps DOT net>, djgpp AT delorie DOT com, gcc-bugs AT gcc DOT gnu DOT org
Subject: Re: bitset
In-Reply-To: <39575EF7.21066.1E90E0@localhost>
Message-ID: <Pine.LNX.4.21.0006260622510.17279-100000@dbritsch.dsl.xmission.com>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Mon, 26 Jun 2000 pavenis AT lanet DOT lv wrote:

> It seems to be real problem with libstdc++ in gcc-2.95.2 (at least I got 
> the same also under Linux)
> 
> Andris

This bug is fixed in libstdc++-v3 from cvs (gcc 2.96 20000619).

Thank you for your bug report.

> 
> On 17 Jun 2000, at 16:52, Dennis Yelle wrote:
> 
> > When I try to compile this:
> > 
> > //============================
> > #include <iostream>
> > #include <climits>
> > #include <bitset>
> > 
> > using namespace std;
> > 
> > bitset<26> junk;
> > 
> > int main()
> > {
> >   junk[0] = 1;
> > }
> > //============================
> > 
> > Using:
> > 
> > Reading specs from c:/djgpp/lib/gcc-lib/djgpp/2.952/specs
> > gcc version 2.95.2 19991024 (release)
> > 
> > I get this:
> > 
> > c:/djgpp/lang/cxx/bitset: In method `bitset<26,long unsigned
> > int>::reference::re
> > ference(bitset<26,long unsigned int> &, long unsigned int)':
> > c:/djgpp/lang/cxx/bitset:751:   instantiated from `bitset<26,long unsigned
> > int>:
> > :operator [](long unsigned int)'
> > bs.cpp:11:   instantiated from here
> > c:/djgpp/lang/cxx/bitset:377: `long unsigned int & _Base_bitset<1,long unsigned
> > int>::_M_getword(long unsigned int)' is inaccessible
> > c:/djgpp/lang/cxx/bitset:581: within this context
> > 
> > Am I doing something wrong, or
> > is bitset broken?
> > 
> > Dennis Yelle
> 
> 

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019