If %I is used without %p, mark the ambiguity with failbit

This commit is contained in:
Howard Hinnant
2021-04-16 15:15:45 -04:00
parent ac6ca2a095
commit 2ef74cb41a

View File

@@ -7845,6 +7845,8 @@ from_stream(std::basic_istream<CharT, Traits>& is, const CharT* fmt,
goto broken;
}
}
else // I is ambiguous, AM or PM?
goto broken;
}
}
if (H != not_a_hour)