https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79323
Bug ID: 79323
Summary: FAIL: 20_util/duration/literals/range.cc (test for
excess errors)
Product: gcc
Version: 7.0.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: redi at gcc dot gnu.org
Target Milestone: ---
This testcase fails when compiled with -O0
/home/jwakely/src/gcc/build/x86_64-pc-linux-gnu/libstdc++-v3/include/chrono: In
instantiation of 'struct
std::literals::chrono_literals::_Checked_integral_constant<long int,
9223372036854775808>':^M
/home/jwakely/src/gcc/build/x86_64-pc-linux-gnu/libstdc++-v3/include/chrono:903:
required from 'constexpr _Dur
std::literals::chrono_literals::__check_overflow() [with _Dur =
std::chrono::duration<long int, std::ratio<3600> >; char ..._Digits = {'9',
'2', '2', '3', '3', '7', '2', '0', '3', '6', '8', '5', '4', '7', '7', '5', '8',
'0', '8'}]'^M
/home/jwakely/src/gcc/build/x86_64-pc-linux-gnu/libstdc++-v3/include/chrono:913:
required from here^M
/home/jwakely/src/gcc/gcc/libstdc++-v3/testsuite/20_util/duration/literals/range.cc:28:
in constexpr expansion of 'std::literals::chrono_literals::operator""h<'9',
'2', '2', '3', '3', '7', '2', '0', '3', '6', '8', '5', '4', '7', '7', '5', '8',
'0', '8'>()'^M
/home/jwakely/src/gcc/build/x86_64-pc-linux-gnu/libstdc++-v3/include/chrono:890:
error: static assertion failed: literal value cannot be represented by duration
type^M