/cp
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 17 May 2012 15:55:51 +0000 (15:55 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 17 May 2012 15:55:51 +0000 (15:55 +0000)
commit2572143c16564137a3042a04b9eca06ef5919600
tree9367aeb410690c46507d07fb1ea823ff0e5b0670
parent009ec0e54e4980f943b59366f465a3e5d85fcfec
/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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@187630 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/except.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/catch1.C [new file with mode: 0644]