https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71183
--- Comment #8 from James Clarke <jrtc27 at jrtc27 dot com> --- (In reply to Jakub Jelinek from comment #7) > Created attachment 38691 [details] > gcc7-pr71183.patch > > Not fundamentally flawed, just one line omitted. > Untested patch that should fix this. Apologies for my comment. I'm sure there are valid technical reasons for why the SOURCE_DATE_EPOCH logic is outside of libcpp that I'm not aware of.