This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/12048] [3.4 Regression] unget does not work
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Aug 2003 04:14:12 -0000
- Subject: [Bug libstdc++/12048] [3.4 Regression] unget does not work
- References: <20030825035409.12048.poschmid@peem.als.lbl.gov>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12048
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |critical
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2003-08-25 04:14:11
date| |
Summary|Problems with IOStreams |[3.4 Regression] unget does
| |not work
Target Milestone|--- |3.4
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-08-25 04:14 -------
I can confirm this on the mainline (20030823), this worked in 3.3 so this is a regression.
Here is a reduced case as it looks like unget is not working:
#include <iostream>
int main()
{
char c,c1;
std::cin.get(c);
std::cin.unget();
std::cin.get(c1);
if(c1!=c)
abort();
}