New testcase for libstdc++/12048 failing
Phil Edwards
phil@jaj.com
Wed Aug 27 16:54:00 GMT 2003
Loren, Petur, greetings. The new testcase added for unget() on stdin is
failing on i686-pc-linux-gnu. After adding some debug printing:
cin rdstate after freopening: 0
c1 is 1
cin rdstate after get: 0
cin rdstate after unget: 1
c2 is X
12048.exe: /home/pme/src/unified/libstdc++-v3/testsuite/27_io/objects/char/12048.cc:40: void test01(): Assertion `c1
== c2' failed.
The 'X' is actually some weird garbage on my screen.
I haven't had time to step into it at all, but just wanted to give
a heads-up.
--
Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it.
- Brian W. Kernighan
More information about the Libstdc++
mailing list