This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/81468] [DR1177] is_constructible gives the wrong answer for time_point construction


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]