[patch][pr22217] Use the most recent decl for mangling

John McCall rjmccall at apple.com
Fri Jan 23 11:52:15 PST 2015

> On Jan 23, 2015, at 11:28 AM, Richard Smith <richard at metafoo.co.uk> wrote:
> We can implement that (by performing lookahead after parsing an anonymous class in a typedef and before parsing method bodies etc), we just don't do so yet. This is also not just an IR generation problem, there are also semantic reasons why we might care about linkage.
Lookahead is a better solution than delaying diagnostics and not caching linkage. :)  We’d need another arbitrary-lookahead tentative parser, because the typedef name isn’t necessarily the first declarator, but the fact that you can’t semantically have top-level expressions in there means that you can indeed do this without incorporating semantic information from prior declarators into lookup.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150123/b855e12d/attachment.html>

More information about the cfe-commits mailing list