re PR c++/21228 (-Wunreachable-code produces spurious warnings for constructor)
authorMark Mitchell <mark@codesourcery.com>
Tue, 20 Dec 2005 08:48:13 +0000 (08:48 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Tue, 20 Dec 2005 08:48:13 +0000 (08:48 +0000)
commit68d04c6749ba2b4e912e359da1706fe6617116c8
treebe663b0ecc3d9eb125f8cd7f7af5c682c5c9353e
parentc3115fd2d9b8c820af8900b35e3aec3857a3c888
re PR c++/21228 (-Wunreachable-code produces spurious warnings for constructor)

PR c++/21228
* decl.c (use_eh_spec_block): New function.
(store_parm_decls): Use it.
(finish_function): Likewise.

PR c++/21228
* g++.dg/warn/Wunreachable-code-2.C: New test.

From-SVN: r108851
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/Wunreachable-code-2.C [new file with mode: 0644]