[Bug libstdc++/11705] Bad interaction between cin and wcin after sync_with_stdio(false)
msebor at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Feb 9 21:40:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=11705
Martin Sebor <msebor at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P2 |P3
CC| |msebor at gcc dot gnu.org
Known to fail| |3.4.0, 4.5.3, 4.8.3, 4.9.3,
| |5.3.0, 6.3.0, 7.0
--- Comment #4 from Martin Sebor <msebor at gcc dot gnu.org> ---
More out of curiosity than in an effort to try to fix this P2 bug I tried the
test case with GCC 7. It aborts so I take that as a confirmation that the bug
is still present. Since the bug has been open for over 13 years with no
activity (and also because interleaving input from the same stream between
std::cin and std::wcin is rare) I think it's appropriate to reduce its
importance to P3.
$ /build/gcc-git/gcc/xg++ -B /build/gcc-git/gcc -nostdinc++ -I
/build/gcc-git/x86_64-pc-linux-gnu/libstdc++-v3/include/x86_64-pc-linux-gnu -I
/build/gcc-git/x86_64-pc-linux-gnu/libstdc++-v3/include -I
/src/gcc/git/libstdc++-v3/libsupc++ -I
/src/gcc/git/libstdc++-v3/include/backward -I
/src/gcc/git/libstdc++-v3/testsuite/util -L
/build/gcc-git/x86_64-pc-linux-gnu/libstdc++-v3/src/.libs t.C && ./a.out
a.out: t.C:36: int main(): Assertion `wcin.fail()' failed.
Aborted (core dumped)
More information about the Gcc-bugs
mailing list