This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/81468] [DR1177] is_constructible gives the wrong answer for time_point construction
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 13 Sep 2017 15:28:44 +0000
- Subject: [Bug libstdc++/81468] [DR1177] is_constructible gives the wrong answer for time_point construction
- Auto-submitted: auto-generated
- References: <bug-81468-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81468
--- Comment #7 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Wed Sep 13 15:28:12 2017
New Revision: 252092
URL: https://gcc.gnu.org/viewcvs?rev=252092&root=gcc&view=rev
Log:
PR libstdc++/81468 constrain std::chrono::time_point constructor
PR libstdc++/81468
* include/std/chrono (time_point(const time_point<_Dur2>&)): Add
missing constraint from LWG DR 1177.
* testsuite/20_util/duration/cons/dr1177.cc: New.
* testsuite/20_util/time_point/cons/81468.cc: New.
* testsuite/20_util/duration/literals/range.cc: Update dg-error line.
Added:
branches/gcc-5-branch/libstdc++-v3/testsuite/20_util/duration/cons/dr1177.cc
branches/gcc-5-branch/libstdc++-v3/testsuite/20_util/time_point/cons/81468.cc
- copied, changed from r252073,
branches/gcc-5-branch/libstdc++-v3/testsuite/20_util/duration/literals/range.cc
Modified:
branches/gcc-5-branch/libstdc++-v3/ChangeLog
branches/gcc-5-branch/libstdc++-v3/include/std/chrono
branches/gcc-5-branch/libstdc++-v3/testsuite/20_util/duration/literals/range.cc