<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, May 5, 2014 at 3:33 PM, Rafael EspĂ­ndola <span dir="ltr"><<a href="mailto:rafael.espindola@gmail.com" target="_blank">rafael.espindola@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">> In this case, it'd be nice to say that the aliasee has no explicit section<br>
> attribute.<br>
<br>
</div>I am not sure I understand the wording you want. The attached patch<br>
adds a different warning for the case where there are 2 explicit<br>
sections. Is that more or less what you have in mind?</blockquote><div><br></div><div>I think I'd like something like:</div><div><br></div><div>warning: attribute 'section' on alias ignored; an alias is in the same section as its target</div>
<div>note: target of alias is in section 'blah'</div><div>... or ...</div><div>note: target of alias has no section specified</div><div><br></div><div>(... with the note pointed at the target of the alias where possible.)</div>
<div><br></div><div>I wonder whether we should warn regardless of whether the sections match, though: having both a section attribute and an alias attribute on the same declaration makes no sense, as far as I can tell.</div>
</div></div></div>