diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2016-01-15 23:12:13 +0000 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2016-01-15 23:12:13 +0000 |
commit | d7c1581c048bbcb391d6cdf0c5327dd91fee5252 (patch) | |
tree | 48f41d9d3552c8ea588cf4deeeb2b8ec755fe005 /gcc/cp/cp-array-notation.c | |
parent | 28621a5c0255fc8f31e379df316828c5548680c2 (diff) | |
download | gcc-d7c1581c048bbcb391d6cdf0c5327dd91fee5252.zip gcc-d7c1581c048bbcb391d6cdf0c5327dd91fee5252.tar.gz gcc-d7c1581c048bbcb391d6cdf0c5327dd91fee5252.tar.bz2 |
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.
From-SVN: r232457
Diffstat (limited to 'gcc/cp/cp-array-notation.c')
0 files changed, 0 insertions, 0 deletions