This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
libstdc++/9792: fd() member is missing from streambuf class in gcc-3.2.x
- From: jlansford at esri dot com
- To: gcc-gnats at gcc dot gnu dot org
- Date: 21 Feb 2003 20:13:01 -0000
- Subject: libstdc++/9792: fd() member is missing from streambuf class in gcc-3.2.x
- Reply-to: jlansford at esri dot com
>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: