re PR c++/53371 (rvalue reference type as exception-declaration)
authorPaolo Carlini <paolo.carlini@oracle.com>
Thu, 17 May 2012 15:55:51 +0000 (15:55 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Thu, 17 May 2012 15:55:51 +0000 (15:55 +0000)
commitf9eead1f8953869fcfd8be7b0e58aff50fbe1fd5
tree9367aeb410690c46507d07fb1ea823ff0e5b0670
parentd7faa110dd439f6406a35661e1c24a3100da1471
re PR c++/53371 (rvalue reference type as exception-declaration)

/cp
2012-05-17  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/53371
* except.c (is_admissible_throw_operand): Rename to
is_admissible_throw_operand_or_catch_parameter and handle
catch parameter too.
(expand_start_catch_block): Use it.
(build_throw): Adjust.

/testsuite
2012-05-17  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/53371
* g++.dg/cpp0x/catch1.C: New.

From-SVN: r187630
gcc/cp/ChangeLog
gcc/cp/except.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/catch1.C [new file with mode: 0644]