<div style="font-family: arial, helvetica, sans-serif; font-size: 10pt">On Thu, Nov 1, 2012 at 9:02 PM, Matt Beaumont-Gay <span dir="ltr"><<a href="mailto:matthewbg@google.com" target="_blank">matthewbg@google.com</a>></span> wrote:<br>
<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Thu, Nov 1, 2012 at 6:08 PM, Richard Trieu <<a href="mailto:rtrieu@google.com">rtrieu@google.com</a>> wrote:<br>
> Author: rtrieu<br>
> Date: Thu Nov 1 20:08:58 2012<br>
> New Revision: 167268<br>
><br>
> URL: <a href="http://llvm.org/viewvc/llvm-project?rev=167268&view=rev" target="_blank">http://llvm.org/viewvc/llvm-project?rev=167268&view=rev</a><br>
> Log:<br>
> When finding a '(' after '::', emit error with hint to remove '(' and matching<br>
> ')', if found. Don't crash.<br>
> Fixes PR11852.<br>
><br>
> Added:<br>
> cfe/trunk/test/Parser/colon-colon-parentheses.cpp<br>
> Modified:<br>
> cfe/trunk/include/clang/Basic/DiagnosticParseKinds.td<br>
> cfe/trunk/include/clang/Parse/Parser.h<br>
> cfe/trunk/lib/Parse/ParseExprCXX.cpp<br>
><br>
> Modified: cfe/trunk/include/clang/Basic/DiagnosticParseKinds.td<br>
> URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/DiagnosticParseKinds.td?rev=167268&r1=167267&r2=167268&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/DiagnosticParseKinds.td?rev=167268&r1=167267&r2=167268&view=diff</a><br>
> ==============================================================================<br>
> --- cfe/trunk/include/clang/Basic/DiagnosticParseKinds.td (original)<br>
> +++ cfe/trunk/include/clang/Basic/DiagnosticParseKinds.td Thu Nov 1 20:08:58 2012<br>
> @@ -348,6 +348,8 @@<br>
> def warn_cxx98_compat_static_assert : Warning<<br>
> "static_assert declarations are incompatible with C++98">,<br>
> InGroup<CXX98Compat>, DefaultIgnore;<br>
> +def err_paren_after_colon_colon : Error<<br>
> + "unexpected parentheses after '::'">;<br>
<br>
</div></div>Grammar nitpick: this should be "parenthesis" (singular).<br>
</blockquote></div><div><br></div>Fixed in r167319.</div>