<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">C++ allows "typename" keywords with identifiers only. In this case compiler interpret identifier as type definition. Clang doesn't check for this case and crash.<br>

Please find the patch attached for review.</blockquote><div><br></div><div>Could you simplify the test case from the bug & include it in the change? (& the diagnostic message should probably use the word "typename" not "type name" (since it refers to an identifier). You could also, potentially, include a removal fixit to remove the typename token if you think that might be the likely fix (seems to be in this case))</div>
<div><br></div><div>- David </div></div>