aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/cp-array-notation.c
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2016-01-15 23:12:13 +0000
committerJonathan Wakely <redi@gcc.gnu.org>2016-01-15 23:12:13 +0000
commitd7c1581c048bbcb391d6cdf0c5327dd91fee5252 (patch)
tree48f41d9d3552c8ea588cf4deeeb2b8ec755fe005 /gcc/cp/cp-array-notation.c
parent28621a5c0255fc8f31e379df316828c5548680c2 (diff)
downloadgcc-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