public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: libstdc++/8373: C++ I/O doesn't work under AIX
@ 2002-10-31  8:23 bkoz
  0 siblings, 0 replies; 3+ messages in thread
From: bkoz @ 2002-10-31  8:23 UTC (permalink / raw)
  To: dje, gcc-bugs, gcc-prs, nobody, tudor_hulubei

Synopsis: C++ I/O doesn't work under AIX

Responsible-Changed-From-To: unassigned->dje
Responsible-Changed-By: bkoz
Responsible-Changed-When: Thu Oct 31 08:23:07 2002
Responsible-Changed-Why:
    Yours.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8373


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: libstdc++/8373: C++ I/O doesn't work under AIX
@ 2002-11-06 11:54 dje
  0 siblings, 0 replies; 3+ messages in thread
From: dje @ 2002-11-06 11:54 UTC (permalink / raw)
  To: dje, gcc-bugs, gcc-prs, tudor_hulubei

Synopsis: C++ I/O doesn't work under AIX

State-Changed-From-To: open->closed
State-Changed-By: dje
State-Changed-When: Wed Nov  6 11:54:18 2002
State-Changed-Why:
    If you include <pthread.h>, you need to invoke g++ with the
    -pthread commandline option.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8373


^ permalink raw reply	[flat|nested] 3+ messages in thread

* libstdc++/8373: C++ I/O doesn't work under AIX
@ 2002-10-27 16:56 tudor_hulubei
  0 siblings, 0 replies; 3+ messages in thread
From: tudor_hulubei @ 2002-10-27 16:56 UTC (permalink / raw)
  To: gcc-gnats


>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 <pthread.h>
#include <iostream>
#include <fstream>

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:


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-11-06 19:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-31  8:23 libstdc++/8373: C++ I/O doesn't work under AIX bkoz
  -- strict thread matches above, loose matches on Subject: below --
2002-11-06 11:54 dje
2002-10-27 16:56 tudor_hulubei

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).