From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4946 invoked by alias); 28 Oct 2002 00:56:01 -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 4913 invoked by uid 71); 28 Oct 2002 00:56:01 -0000 Resent-Date: 28 Oct 2002 00:56:01 -0000 Resent-Message-ID: <20021028005601.4912.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, tudor_hulubei@yahoo.com Received: (qmail 8555 invoked by uid 61); 28 Oct 2002 00:50:13 -0000 Message-Id: <20021028005013.8554.qmail@sources.redhat.com> Date: Sun, 27 Oct 2002 16:56:00 -0000 From: tudor_hulubei@yahoo.com Reply-To: tudor_hulubei@yahoo.com To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: libstdc++/8373: C++ I/O doesn't work under AIX X-SW-Source: 2002-10/txt/msg01144.txt.bz2 List-Id: >Number: 8373 >Category: libstdc++ >Synopsis: C++ I/O doesn't work under AIX >Confidential: no >Severity: critical >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Sun Oct 27 16:56:01 PST 2002 >Closed-Date: >Last-Modified: >Originator: Tudor Hulubei >Release: gcc-3.2 >Organization: >Environment: AIX 4.3.3 >Description: C++ I/O doesn't work under AIX as of GCC 3.2. The following program goes into an infinite loop when compiled with -g and segfaults when compiled with -O1: #include #include #include using namespace std; int main() { ifstream ifs("/etc/passwd", ios::in); if (!ifs) return 13; while (ifs.good() && !ifs.eof()) { char s[1024]; ifs.getline(s, sizeof(s)); if (strlen(s) == 0) continue; cout << s << endl; } return 0; } >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: