Bug#151618: g++-3.1: Rope apparently moved out of std.

2002-07-01 Thread Marc Singer
Package: g++-3.1
Version: 1:3.1.1-0pre2
Severity: normal


This code compiled in gcc-3.0 and fails in gcc-3.1 claiming that class
rope is not to be found in std.  

  #include 
  #include 
  #include 

  int main (int, char**)
  {
std::rope r;
char sz[] = 
  "Now is the time for all good men to come to the aid of their party.\n"
  "Now is the time for all good men to come to the aid of their party.\n"
  "Now is the time for all good men to come to the aid of their party.\n"
  "Now is the time for all good men to come to the aid of their party.\n";
  
r.append (sz, strlen (sz));
while (r.size ()) {
  printf ("%d\n", r.size ());
  r.erase (0,50);
}
exit (0);
  }



-- System Information
Debian Release: 3.0
Kernel Version: Linux florence 2.4.17 #2 SMP Sun Jan 6 11:01:58 PST 2002 i686 
unknown

Versions of the packages g++-3.1 depends on:
ii  gcc-3.13.1.1-0pre2The GNU C compiler.
ii  gcc-3.1-base   3.1.1-0pre2The GNU Compiler Collection (base package).
ii  libc6  2.2.5-6GNU C Library: Shared libraries and Timezone
ii  libstdc++4-dev 3.1.1-0pre2The GNU stdc++ library version 3 (developmen


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Bug#151618: g++-3.1: Rope apparently moved out of std.

2002-07-01 Thread Phil Edwards
On Mon, Jul 01, 2002 at 10:44:16PM -, Marc Singer wrote:
> Package: g++-3.1
> Version: 1:3.1.1-0pre2
> Severity: normal
> 
> 
> This code compiled in gcc-3.0 and fails in gcc-3.1 claiming that class
> rope is not to be found in std.  

Yep.  Extensions not actually in the standard ISO namespace are getting
moved into __gnu_cxx, starting with 3.1.

file:///usr/share/doc/libstdc++4-doc/libstdc++/html_user/namespacegnu__cxx.html#_details

The SGI rope class is not listed on the above page, but only because nobody's
volunteered to document it.  I don't plan to (but I should probably at
least add the hooks so it'll show up in the list).


Phil

-- 
If ye love wealth greater than liberty, the tranquility of servitude greater
than the animating contest for freedom, go home and leave us in peace.  We seek
not your counsel, nor your arms.  Crouch down and lick the hand that feeds you;
and may posterity forget that ye were our countrymen.- Samuel Adams


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Bug#151618: g++-3.1: Rope apparently moved out of std.

2002-07-01 Thread elf
I suspected that, but

  using namespace __gnu_cxx;

reports that the namespace '__gnu_cxx' is undeclared.  Explicitly
referencing that namespace does work.

On Mon, Jul 01, 2002 at 06:59:25PM -0400, Phil Edwards wrote:
> On Mon, Jul 01, 2002 at 10:44:16PM -, Marc Singer wrote:
> > Package: g++-3.1
> > Version: 1:3.1.1-0pre2
> > Severity: normal
> > 
> > 
> > This code compiled in gcc-3.0 and fails in gcc-3.1 claiming that class
> > rope is not to be found in std.  
> 
> Yep.  Extensions not actually in the standard ISO namespace are getting
> moved into __gnu_cxx, starting with 3.1.
> 
> file:///usr/share/doc/libstdc++4-doc/libstdc++/html_user/namespacegnu__cxx.html#_details
> 
> The SGI rope class is not listed on the above page, but only because nobody's
> volunteered to document it.  I don't plan to (but I should probably at
> least add the hooks so it'll show up in the list).
> 
> 
> Phil
> 
> -- 
> If ye love wealth greater than liberty, the tranquility of servitude greater
> than the animating contest for freedom, go home and leave us in peace.  We 
> seek
> not your counsel, nor your arms.  Crouch down and lick the hand that feeds 
> you;
> and may posterity forget that ye were our countrymen.- Samuel 
> Adams


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]