LWG 3050 Fix cv-qualification of convertibility constraints
authorJonathan Wakely <jwakely@redhat.com>
Mon, 18 Jun 2018 18:02:24 +0000 (19:02 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Mon, 18 Jun 2018 18:02:24 +0000 (19:02 +0100)
commit8499a82c19c6e2d165bd1c5ff67b8f0e9294190e
tree469adfc925404f36adff82cb2b1386c70877263f
parent4f9eae9fd88ea2de19b7660b03fa6d49217ab211
LWG 3050 Fix cv-qualification of convertibility constraints

LWG 3050 Fix cv-qualification of convertibility constraints
* include/std/chrono (duration, operator*, operator/, operator%): Use
const-qualified type as source type in is_convertible constraints.
* testsuite/20_util/duration/arithmetic/dr3050.cc: New.
* testsuite/20_util/duration/cons/dr3050.cc: New.
* testsuite/20_util/duration/literals/range.cc: Rename to...
* testsuite/20_util/duration/literals/range_neg.cc: Here. Adjust
dg-error lineno.

From-SVN: r261708
libstdc++-v3/ChangeLog
libstdc++-v3/include/std/chrono
libstdc++-v3/testsuite/20_util/duration/cons/dr3050.cc [new file with mode: 0644]
libstdc++-v3/testsuite/20_util/duration/literals/range.cc [deleted file]
libstdc++-v3/testsuite/20_util/duration/literals/range_neg.cc [new file with mode: 0644]