re PR libstdc++/48631 ([C++0x] default_delete<T[]> accepts pointer conversions in...
authorDaniel Krugler <daniel.kruegler@googlemail.com>
Sat, 16 Apr 2011 02:02:29 +0000 (02:02 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Sat, 16 Apr 2011 02:02:29 +0000 (02:02 +0000)
commitd4610485ccb9bb9d0b2145b3bab085967c6422fc
tree3ff444f259f0d704b75a6c95f80c3273fd5f426f
parent2705a8d66edb092fa6e8b3131049c2d495e4ea21
re PR libstdc++/48631 ([C++0x] default_delete<T[]> accepts pointer conversions in function call operator)

2011-04-15  Daniel Krugler  <daniel.kruegler@googlemail.com>
    Paolo Carlini  <paolo.carlini@oracle.com>

PR libstdc++/48631
* include/bits/unique_ptr.h (default_delete<_Tp[]>): Add deleted
function call operator.
* testsuite/20_util/default_delete/48631_neg.cc: New.
* testsuite/20_util/weak_ptr/comparison/cmp_neg.cc: Adjust dg-error
line numbers.

Co-Authored-By: Paolo Carlini <paolo.carlini@oracle.com>
From-SVN: r172534
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/unique_ptr.h
libstdc++-v3/testsuite/20_util/default_delete/48631_neg.cc [new file with mode: 0644]
libstdc++-v3/testsuite/20_util/weak_ptr/comparison/cmp_neg.cc