Correct semantics restrictions checking in throw-expression.
authorGabriel Dos Reis <gdr@codesourcery.com>
Thu, 15 Mar 2001 07:59:53 +0000 (07:59 +0000)
committerGabriel Dos Reis <gdr@gcc.gnu.org>
Thu, 15 Mar 2001 07:59:53 +0000 (07:59 +0000)
commitd064d75a33a6a4bea4d8a863ddff6bc88281029d
tree26a5e318a3736edd7e0207acd62e762714ec16e9
parentba133c968c260e4f4c9623630812846202b5e54f
Correct semantics restrictions checking in throw-expression.

cp/
Correct semantics restrictions checking in throw-expression.
* except.c (is_admissible_throw_operand): New function.
(build_throw): Use it.

testsuite/
* g++.old-deja/g++.other/eh4.C: New test.

From-SVN: r40487
gcc/cp/ChangeLog
gcc/cp/except.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.old-deja/g++.other/eh4.C [new file with mode: 0644]