This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
New testcase for libstdc++/12048 failing
- From: Phil Edwards <phil at jaj dot com>
- To: libstdc++ at gcc dot gnu dot org, rittle at labs dot mot dot com
- Cc: Petur Runolfsson <peturr02 at ru dot is>
- Date: Wed, 27 Aug 2003 12:54:26 -0400
- Subject: New testcase for libstdc++/12048 failing
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