[cfe-commits] [patch] PR10127/N3031 supporting decltype in nested-namespace-specifiers
David Blaikie
dblaikie at gmail.com
Sun Nov 6 22:15:54 PST 2011
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: 13520 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20111106/a07aad69/attachment.diff>
More information about the cfe-commits
mailing list