[cfe-commits] [patch] PR10127/N3031 supporting decltype in nested-namespace-specifiers
David Blaikie
dblaikie at gmail.com
Mon Nov 7 07:44:54 PST 2011
Now with better error recovery (utilizing CXXScopeSpec's
setInvalid(SourceRange) as is done elsewhere) & support for
non-crashing when used in member ref expressions like
a->decltype(foo)::bar() (including test cases for same) based on some
test cases suggested by Chandler Carruth.
- David
On Sun, Nov 6, 2011 at 10:15 PM, David Blaikie <dblaikie at gmail.com> wrote:
> Here's a patch that adds support for decltype in
> nested-namespace-specifiers. I've included test cases for use of this
> feature in both declarations and expressions (open to suggestions for
> other contexts that might benefit from coverage).
>
> I've also improved error recovery of the existing use of decltype (for
> declarations) & these new uses by calling DeclSpec
> setTypeSpecTypeError when errors are encountered while trying to parse
> a decltype-specifier. There's probably still some error recovery to
> improve, though, as I'm not currently doing anything with
> ActOnCXXNestedNameSpecifierDecltype's return value as I'm not sure
> what the best error recovery would be there. I suppose the
> CXXScopeSpec should at least be failed.
>
> - David
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr10127.diff
Type: text/x-diff
Size: 14085 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20111107/8e16bb16/attachment.diff>
More information about the cfe-commits
mailing list