diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2022-11-21 11:52:34 +0000 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2022-11-21 17:46:42 +0000 |
commit | ed77dcb9be76e592b62449c75a5e751485514afd (patch) | |
tree | f3567c9e885b2c357173c2f3fc481eae0d70d5e2 /libcpp/directives.cc | |
parent | 94f7baf2194e2d20108c9d34d2766e6b14e25cef (diff) | |
download | gcc-ed77dcb9be76e592b62449c75a5e751485514afd.zip gcc-ed77dcb9be76e592b62449c75a5e751485514afd.tar.gz gcc-ed77dcb9be76e592b62449c75a5e751485514afd.tar.bz2 |
libstdc++: Check static assertions earlier in chrono::duration
This ensures that we fail a static assertion before giving any other
errors. Instantiating chrono::duration<int, chrono::seconds> will now
print this before the other errors caused by it:
error: static assertion failed: period must be a specialization of ratio
libstdc++-v3/ChangeLog:
* include/bits/chrono.h (duration): Check preconditions on
template arguments before using them.
Diffstat (limited to 'libcpp/directives.cc')
0 files changed, 0 insertions, 0 deletions