<div dir="ltr">[time.duration.literals]p3 says:<div><br></div><div>"If any of these suffixes are applied to an integer literal and the resulting chrono::duration value cannot be represented in the result type because of overflow, the program is ill-formed."</div><div><br></div><div>That's unimplementable in standard C++, but implementable with Clang using the enable_if attribute. This patch also rejects</div><div><br></div><div>  (void) operator""ns(0x8000000000000000ull);</div><div><br></div><div>... and it's not entirely clear whether that's permissible, but this is the best we can do at the moment (and I think it's a good thing to reject the above code).</div><div><br></div><div>Thoughts?</div><div><br></div><div>(We could do the same thing for floating-point <chrono> literals, but the standard doesn't allow us to do so.)</div></div>