https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94869
--- Comment #6 from Leo Carreon <lcarreon at bigpond dot net.au> --- Thanks for your comments. I have realized what the issue is. It is to do with local_time and local_days being defined in namespace date and std::chrono.