This is an archive of the discontinued LLVM Phabricator instance.

[libc++] Add test for bug that had been introduced in D98573 and fixed in D119633
ClosedPublic

Authored by ldionne on Oct 5 2022, 11:15 AM.

Diff Detail

Event Timeline

ldionne created this revision.Oct 5 2022, 11:15 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 5 2022, 11:15 AM
ldionne requested review of this revision.Oct 5 2022, 11:15 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 5 2022, 11:15 AM
Herald added a reviewer: Restricted Project. · View Herald Transcript

If you revert D119633, this test starts failing. It looks like we forgot to add a test when we made D98573, but I think it might be because the motivation for making the change was not fixing this bug, it was implementing constexpr string.

philnik accepted this revision.Oct 5 2022, 11:51 AM

If you revert D119633, this test starts failing. It looks like we forgot to add a test when we made D98573, but I think it might be because the motivation for making the change was not fixing this bug, it was implementing constexpr string.

I was indeed not aware that the patch fixed a bug. LGTM % comments.

libcxx/test/std/strings/basic.string/string.modifiers/string_insert/iter_iter_iter.infinite_recursion.pass.cpp
28–30
95
This revision is now accepted and ready to land.Oct 5 2022, 11:51 AM
ldionne marked 2 inline comments as done.Oct 11 2022, 6:42 AM
ldionne added inline comments.
libcxx/test/std/strings/basic.string/string.modifiers/string_insert/iter_iter_iter.infinite_recursion.pass.cpp
95

Changed to char_traits::move.

ldionne updated this revision to Diff 466795.Oct 11 2022, 6:42 AM
ldionne marked an inline comment as done.

Apply review comments and fix C++03/C++11 CI.

ldionne updated this revision to Diff 467106.Oct 12 2022, 5:34 AM

Fix C++03.

ldionne updated this revision to Diff 467143.Oct 12 2022, 7:41 AM

Rebase onto main