From 6f0b645df17ace60a4c0750d783683c067e670e3 Mon Sep 17 00:00:00 2001 From: Paul Dreik Date: Mon, 22 Jul 2019 02:47:33 +0200 Subject: [PATCH] #388 add comment on unit test failure (#442) --- test/date_test/parse.pass.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/date_test/parse.pass.cpp b/test/date_test/parse.pass.cpp index cad577e..fe822c6 100644 --- a/test/date_test/parse.pass.cpp +++ b/test/date_test/parse.pass.cpp @@ -45,6 +45,8 @@ test_a() std::istringstream in{"Sun 2016-12-11"}; sys_days tp; in >> parse("%A %F", tp); + // this may fail with libstdc++, see https://github.com/HowardHinnant/date/issues/388 + // possible workaround: compile date.h with -DONLY_C_LOCALE=1 assert(!in.fail()); assert(!in.bad()); assert(!in.eof());