<div class="gmail_quote">On Mon, Oct 3, 2011 at 9:43 AM, Kaelyn Uhrain <span dir="ltr"><<a href="mailto:rikka@google.com">rikka@google.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Yeah, I was having trouble coming up with wording that would work both when the declaration being diagnosed doesn't have a "const" but one of the matched decls does, and when the matched decl doesn't but the decl being diagnosed does. In particular I was trying to avoid having those two cases being two separate Diag statements under two branches of an if statement.</blockquote>
</div><br><div>What about (based on Eli's example): "member declaration does not match because it %select{is|is not}N const qualified"</div><div><br></div><div>It seems good to have the message explicitly indicate in which direction the error was made, and we can use select to avoid over complex emission code...</div>