From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20327 invoked by alias); 16 May 2002 08:56:04 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 20273 invoked by uid 71); 16 May 2002 08:56:01 -0000 Resent-Date: 16 May 2002 08:56:01 -0000 Resent-Message-ID: <20020516085601.20272.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-To: nobody@gcc.gnu.org Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, strieder@informatik.uni-kl.de Received:(qmail 18579 invoked by uid 61); 16 May 2002 08:54:17 -0000 Message-Id:<20020516085417.18578.qmail@sources.redhat.com> Date: Thu, 16 May 2002 01:56:00 -0000 From: strieder@informatik.uni-kl.de Reply-To: strieder@informatik.uni-kl.de To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version:gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: libstdc++/6672: header produces errors X-SW-Source: 2002-05/txt/msg00442.txt.bz2 List-Id: >Number: 6672 >Category: libstdc++ >Synopsis: header produces errors >Confidential: no >Severity: non-critical >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Thu May 16 01:56:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Bernd Strieder >Release: 3.1 >Organization: >Environment: Linux 2.4 i686 >Description: The following file compiles with releases gcc-2.95.3 and snapshot gcc-20020513, but not with gcc-3.1. #include int main(void) { std::fstream file ("fstreamtest.txt", std::ios::out); file << "Test"; } The bug occurs in file ..gcc/include/g++-v3/bits/basic_file.h template class __basic_file_base: public __c_file_type { __c_file_type is unknown producing a parse error before { >How-To-Repeat: Just compile like g++ -g -O2 fstreamt.cc -o fstreamt In file included from /net/bernd/gcc/include/g++-v3/fstream:48, from fstreamt.cc:1: /net/bernd/gcc/include/g++-v3/bits/basic_file.h:52: parse error before `{' token ... subsequent messages omitted >Fix: not known It seems to be recently introduced, since last snapshot worked. >Release-Note: >Audit-Trail: >Unformatted: