This is the mail archive of the gcc-bugs@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++/6837: #include <fstream> fails



>Number:         6837
>Category:       libstdc++
>Synopsis:       #include <fstream> fails
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          rejects-legal
>Submitter-Id:   net
>Arrival-Date:   Mon May 27 11:56:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Jim
>Release:        gcc-3.1
>Organization:
>Environment:
i686-pc-linux-gnu
>Description:
The following program:

//////////////////
#include <fstream>
//////////////////

fails on my system, with a few pages of error messages that
begin:

In file included from /usr/include/g++-v3/fstream:48,
                 from bug.cc:1:
/usr/include/g++-v3/bits/basic_file.h:52: parse error before `{' token

It is complaining about the line:

  template<typename _CharT>
    struct __basic_file_base: public __c_file_type

because of a lack of definition for __c_file_type
>How-To-Repeat:

>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]