This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]