[PATCH] function try block handler redeclarations

Aaron Ballman aaron at aaronballman.com
Tue May 27 06:57:12 PDT 2014


The exception-declaration for a function-try-block cannot redeclare a
function parameter. One of our existing test cases was XFAILed because
of this. This patch is an attempt to fix the issue and un-XFAIL the
test.

I am getting this from [basic.lookup.unqual]p15, which says,

A name used in the handler for a function-try-block (Clause 15) is
looked up as if the name was used in the outermost block of the
function definition. In particular, the function parameter names shall
not be redeclared in the exception-declaration nor in the outermost
block of a handler for the function-try-block.

~Aaron
-------------- next part --------------
A non-text attachment was scrubbed...
Name: FnCatch.patch
Type: application/octet-stream
Size: 3981 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140527/1137127a/attachment.obj>


More information about the cfe-commits mailing list