diff options
author | Jason Merrill <jason@redhat.com> | 2011-05-23 11:48:37 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2011-05-23 11:48:37 -0400 |
commit | 86d822aa63c1694e896ab66c92fa660fc4864c9f (patch) | |
tree | 89fb7d1e228ef02554dc27db12fcb40c5e032993 /gcc/cp/decl.c | |
parent | dbee8bb3da264ebff80a3a3cdef017fbc0566467 (diff) | |
download | gcc-86d822aa63c1694e896ab66c92fa660fc4864c9f.zip gcc-86d822aa63c1694e896ab66c92fa660fc4864c9f.tar.gz gcc-86d822aa63c1694e896ab66c92fa660fc4864c9f.tar.bz2 |
re PR c++/47263 ([C++0x] lambda + dynamic-exception-specification std::unexpected() is not called.)
PR c++/47263
* decl.c (use_eh_spec_block): Do use an EH spec block for a
lambda op().
From-SVN: r174076
Diffstat (limited to 'gcc/cp/decl.c')
-rw-r--r-- | gcc/cp/decl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index 733157a..234daaf 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -12759,7 +12759,7 @@ use_eh_spec_block (tree fn) not creating the EH_SPEC_BLOCK we save a little memory, and we avoid spurious warnings about unreachable code. */ - && !DECL_ARTIFICIAL (fn)); + && !DECL_DEFAULTED_FN (fn)); } /* Store the parameter declarations into the current function declaration. |