libstdc++/9792: fd() member is missing from streambuf class in gcc-3.2.x
jlansford@esri.com
jlansford@esri.com
Fri Feb 21 20:16:00 GMT 2003
>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:
More information about the Gcc-bugs
mailing list