[Bug libstdc++/12048] [3.4 Regression] unget does not work
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Mon Aug 25 04:14:00 GMT 2003
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();
}
More information about the Gcc-bugs
mailing list