<div dir="ltr">On Fri, May 3, 2013 at 7:40 AM, Rafael Espíndola <span dir="ltr"><<a href="mailto:rafael.espindola@gmail.com" target="_blank" class="cremed">rafael.espindola@gmail.com</a>></span> wrote:<br><div class="gmail_extra">
<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">I am not sure if the language linkage checks should use lexical or<br>

semantic contexts. If lexical, this patch fixes pr14958.</blockquote><div><br></div><div><div>It should be lexical. Linkage specification declarations do not introduce a scope, and the relevant rule is which innermost linkage specification an entity is "declared within", which is a lexical notion (see [dcl.link]p4).</div>
<div><br></div><div>Patch LGTM. Have you looked for the same bug in other places where we check the language linkage?</div></div></div></div></div>