<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div><blockquote type="cite" class=""><div class="">On Jan 23, 2015, at 11:28 AM, Richard Smith <<a href="mailto:richard@metafoo.co.uk" class="">richard@metafoo.co.uk</a>> wrote:</div><div class=""><p dir="ltr" class="">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.</p>
</div></blockquote></div>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.<div class=""><br class=""></div><div class="">John.</div></body></html>