PR79114 use decayed type in std::throw_with_nested assertion
authorJonathan Wakely <jwakely@redhat.com>
Tue, 17 Jan 2017 15:26:06 +0000 (15:26 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Tue, 17 Jan 2017 15:26:06 +0000 (15:26 +0000)
commit04c872aae4a834dd60cef275d66bd7a3503f8128
tree55e4817822b8788a3eb0f316e0d4e359938ac8a7
parent4f197ff9a82986bea40e6075c55b45348e4495ef
PR79114 use decayed type in std::throw_with_nested assertion

PR libstdc++/79114
* libsupc++/nested_exception.h (throw_with_nested): Use decay instead
of remove_reference.
* testsuite/18_support/nested_exception/79114.cc: New test.

From-SVN: r244531
libstdc++-v3/ChangeLog
libstdc++-v3/libsupc++/nested_exception.h
libstdc++-v3/testsuite/18_support/nested_exception/79114.cc [new file with mode: 0644]