https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69293

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Fri Jan 15 23:12:13 2016
New Revision: 232457

URL: https://gcc.gnu.org/viewcvs?rev=232457&root=gcc&view=rev
Log:
Use static assertion for uses-allocator construction

        PR libstdc++/69293
        * include/bits/uses_allocator.h (__uses_alloc<true, ...>): Add
        static assertion that type is constructible from the arguments.
        * testsuite/20_util/scoped_allocator/69293_neg.cc: New.
        * testsuite/20_util/uses_allocator/69293_neg.cc: New.
        * testsuite/20_util/uses_allocator/cons_neg.cc: Adjust dg-error.

Added:
    trunk/libstdc++-v3/testsuite/20_util/scoped_allocator/69293_neg.cc
    trunk/libstdc++-v3/testsuite/20_util/uses_allocator/69293_neg.cc
      - copied, changed from r232455,
trunk/libstdc++-v3/testsuite/20_util/uses_allocator/cons_neg.cc
Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/include/bits/uses_allocator.h
    trunk/libstdc++-v3/testsuite/20_util/uses_allocator/cons_neg.cc

Reply via email to