public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: bkoz@gcc.gnu.org To: bkoz@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, Subject: Re: libstdc++/4146: input, num_get, regression from 2.95 Date: Fri, 23 Nov 2001 01:53:00 -0000 [thread overview] Message-ID: <20011201023602.2171.qmail@sourceware.cygnus.com> (raw) The following reply was made to PR libstdc++/4146; it has been noted by GNATS. From: bkoz@gcc.gnu.org To: bkoz@gcc.gnu.org, bkoz@gnu.org, gcc-bugs@gcc.gnu.org, gcc-gnats@gcc.gnu.org, gcc-prs@gcc.gnu.org, wall@chop.swmed.edu Cc: Subject: Re: libstdc++/4146: input, num_get, regression from 2.95 Date: 1 Dec 2001 02:29:28 -0000 Synopsis: input, num_get, regression from 2.95 State-Changed-From-To: analyzed->feedback State-Changed-By: bkoz State-Changed-When: Fri Nov 30 18:29:28 2001 State-Changed-Why: Hey. I just examined this with current gcc-3.1 head. Sorry for the delay, by the way. You're right, it was very simple: in read_pdb_file, the ifstream is opened, read, closed, then re-opened. This is all fine, but the file is reopened without clearing error bits, thus failing to deal with the resulting data. On line 197 of my copy of these sources: pdb_file.open(pdb_file_name, std::ios::in); pdb_file.clear(); // XXX bkoz DR 22 need to clear eofbit. while (pdb_file >> dummy) Adding the clear solves the problem.... Anyway. Try this: it should solve your problem. I noticed that the output file is formatted a bit differently between gcc-2.96 and gcc-3.x: 2.96: ATOM 2 CA ASN 584 22.622 -18.771 28.061 1.00 30.76 gcc-3.x: ATOM 1 N ASN 584 23.122 -19.077 26.733 1.00 31.16 Notice the different spacing right before the floating poin type. I believe this is correct: align (right) << " " // 4 spaces setwidth (8) << output 6-digit numeric type. Looks right to me. Here's hoping this solves your problem. http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&pr=4146&database=gcc
next reply other threads:[~2001-12-01 2:36 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2001-11-23 1:53 bkoz [this message] -- strict thread matches above, loose matches on Subject: below -- 2001-12-05 14:46 bkoz 2001-12-05 14:35 bkoz 2001-11-23 1:46 bkoz 2001-10-29 10:25 bkoz 2001-08-27 11:46 bkoz
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20011201023602.2171.qmail@sourceware.cygnus.com \ --to=bkoz@gcc.gnu.org \ --cc=gcc-prs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).