This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

libstdc++/9792: fd() member is missing from streambuf class in gcc-3.2.x


>Number:         9792
>Category:       libstdc++
>Synopsis:       fd() member is missing from streambuf class in gcc-3.2.x
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Feb 21 20:16:01 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Jason Lansford
>Release:        gcc 3.2.1
>Organization:
>Environment:
RedHat 7.3 on x86 with gcc 3.2.1
>Description:
#include <fstream.h>

main()
{
  ifstream *stream = new ifstream("/tmp/xx");
  int fd = stream->rdbuf()->fd();
}


above program with gcc-2.96.x compiles.  When using
gcc-3.2.x, get error about fd() member:

test.cpp:6: no matching function for call to `std::basic_filebuf<char,
   std::char_traits<char> >::fd()'

>How-To-Repeat:
Save above program as test.cpp
g++ -c test.cpp
>Fix:

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


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