From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25126 invoked by alias); 8 Jan 2002 21: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 25094 invoked by uid 71); 8 Jan 2002 21:56:03 -0000 Resent-Date: 8 Jan 2002 21:56:03 -0000 Resent-Message-ID: <20020108215603.25093.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, jianhua.zhou@informix.com Received:(qmail 24693 invoked by uid 61); 8 Jan 2002 21:55:31 -0000 Message-Id:<20020108215531.24692.qmail@sources.redhat.com> Date: Tue, 08 Jan 2002 13:56:00 -0000 From: jianhua.zhou@informix.com Reply-To: jianhua.zhou@informix.com To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version:gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: c++/5314: compilation error X-SW-Source: 2002-01/txt/msg00346.txt.bz2 List-Id: >Number: 5314 >Category: c++ >Synopsis: compilation error >Confidential: no >Severity: critical >Priority: high >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Tue Jan 08 13:56:02 PST 2002 >Closed-Date: >Last-Modified: >Originator: Jianhua Zhou >Release: g++ 3.0.3 >Organization: >Environment: RedHat 7.1 >Description: The following code has compilation problem in g++ 3.0.3. It is ok in other C++ compiler and g++ 2.9.1 #include #include main() { filebuf x(1); } The output are: zhou.cxx: In function `int main()': zhou.cxx:5: no matching function for call to `std::basic_filebuf >::basic_filebuf(int)' /usr/local/include/g++-v3/bits/std_iosfwd.h:78: candidates are: std::basic_filebuf >::basic_filebuf(const std::basic_filebuf >&) /usr/local/include/g++-v3/bits/fstream.tcc:122: std::basic_filebuf<_CharT, _Traits>::basic_filebuf(std::__c_file_type*, std::_Ios_Openmode, typename _Traits::int_type = static_cast(8192)) [with _CharT = char, _Traits = std::char_traits] /usr/local/include/g++-v3/bits/fstream.tcc:114: std::basic_filebuf<_CharT, _Traits>::basic_filebuf() [with _CharT = char, _Traits = std::char_traits] >How-To-Repeat: see Description. >Fix: >Release-Note: >Audit-Trail: >Unformatted: