libstdc++/1815: basic_stringbuf<..>:seekpos has wrong signature in libstdc++

jarausch@igpm.rwth-aachen.de jarausch@igpm.rwth-aachen.de
Sun Apr 1 00:00:00 GMT 2001


>Number:         1815
>Category:       libstdc++
>Synopsis:       basic_stringbuf<..>:seekpos has wrong signature in libstdc++
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jan 31 01:06:02 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Helmut Jarausch, Lehrst. Numer. Math, RWTH Aachen, Germany
>Release:        cvs 20010130
>Organization:
>Environment:
Linux kernel 2.4.0  glibc 2.2.1
and also with
IRIX 6.5.9
>Description:
The tiny test prog below gets a linkage error

on Linux 2.4.0/glibc-2.2.1
undefined reference to 
 `std::basic_stringbuf<char, std::char_traits<char>, 
  std::allocator<char> >::seekpos(std::fpos<mbstate_t>, std::_Ios_Openmode)'
                                            ^^^^^^^^^
collect2: ld returned 1 exit status

contained in  libstdc++.so.3 :

0004c7e0 W std::basic_stringbuf<char, std::char_traits<char>, 
  std::allocator<char> >::seekpos(std::fpos<__mbstate_t>, std::_Ios_Openmode)
                                            ^^^^^^^^^^^

--------------------

on IRIX 6.5.9

Unresolved text symbol 
 "std::basic_stringbuf<char, std::char_traits<char>, 
  std::allocator<char> >::seekpos(std::fpos<mbstate_t>, std::_Ios_Openmode)"
                                            ^^^^^^^^^

contained in  libstdc++.so.4 :
 std::basic_stringbuf<char, std::char_traits<char>, 
 std::allocator<char> >::seekpos(std::fpos<char>, std::_Ios_Openmode) (weak)
                                           ^^^^


Test program
#include <string>
using std::string;

#include <sstream>
using std::istringstream;

int main() {
  string Input1("  word1 word2\n   word3");
  istringstream Inp(Input1);
  string S;
  Inp >> S;
}
>How-To-Repeat:
g++  test.C
where test.C is:
int main() {
  string Input1("  word1 word2\n   word3");
  istringstream Inp(Input1);
  string S;
  Inp >> S;
}
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the Gcc-prs mailing list