any (any::operator=(const any&)): Check for self-assignment.
authorJonathan Wakely <jwakely@redhat.com>
Thu, 30 Jul 2015 10:00:39 +0000 (11:00 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 30 Jul 2015 10:00:39 +0000 (11:00 +0100)
commit2e3f48dc43aae10019e0e56ac0e7323d1e14531a
tree86a816d8cd0c69972dc16ed8433bed662c8216ba
parent173864e8f143d138c2805c03699d8d58b2c970c8
any (any::operator=(const any&)): Check for self-assignment.

* include/experimental/any (any::operator=(const any&)): Check for
self-assignment.
* testsuite/experimental/any/assign/self.cc: New.
* testsuite/experimental/any/misc/any_cast_neg.cc: Adjust dg-error.

From-SVN: r226393
libstdc++-v3/ChangeLog
libstdc++-v3/include/experimental/any
libstdc++-v3/testsuite/experimental/any/assign/self.cc [new file with mode: 0644]
libstdc++-v3/testsuite/experimental/any/misc/any_cast_neg.cc