<div>ping...</div><div>Regards,<br />Stepan</div><div>20.09.2011, 01:03, "Stepan Dyatkovskiy" <STPWORLD@narod.ru>:</div><blockquote><div>Hi,</div><div>Doug, you right. MatchTemplateParametersToScopeSpecifier is unneccessary here.</div><div>Matthieu, I have VS2008EE installed in my Virtual Box. It also reports errors for all cases of "template-keyword + member-field" usage.</div><div>Please find the fixed patch.</div><div>-- <br />Regards,<br />Stepan</div><div>19.09.2011, 20:58, "Matthieu Monrocq" <<a href="mailto:matthieu.monrocq@gmail.com">matthieu.monrocq@gmail.com</a>>:</div><blockquote><br /><br /><div>2011/9/19 Douglas Gregor <span dir="ltr"><<a href="mailto:dgregor@apple.com">dgregor@apple.com</a>></span><br /><blockquote style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid #cccccc;padding-left:1ex;">Hello Stepan,<br /> <br /> On Sep 15, 2011, at 1:28 PM, Stepan Dyatkovskiy wrote:<br /> <br /> > C++ does not allow member templates. Clang doesn't check for this case and crash.<br /> ><br /> > Please find attach the patch which fixes this.<br /> <br /> + š š// FIXME: Check that the name is an identifier!<br /> + š šIdentifierInfo *II = Name.getAsIdentifierInfo();<br /> +<br /> + š š// Match up the template parameter lists with the scope specifier, then<br /> + š š// determine whether we have a template or a template specialization.<br /> + š šbool isExplicitSpecialization = false;<br /> + š šbool Invalid = false;<br /> + š šif (TemplateParameterList *TemplateParams =<br /> + š š š š šMatchTemplateParametersToScopeSpecifier(<br /> + š š š š š š š š š š š š š š š šD.getDeclSpec().getSourceRange().getBegin(),<br /> + š š š š š š š š š š š š š š š šD.getIdentifierLoc(),<br /> + š š š š š š š š š š š š š š š šD.getCXXScopeSpec(),<br /> + š š š š š š š š š š š š š š š šTemplateParameterLists.get(),<br /> + š š š š š š š š š š š š š š š šTemplateParameterLists.size(),<br /> + š š š š š š š š š š š š š š š š/*never a friend*/false,<br /> + š š š š š š š š š š š š š š š šisExplicitSpecialization,<br /> + š š š š š š š š š š š š š š š šInvalid)) {<br /> <br /> Why are we even trying to match up the template parameter lists here? One isn't allowed to write a specialization inside a class, much less a specialization that looks like a variable. Couldn't this be a simpler "is there a template parameter list" check?<br /> <br /> š š š š- Doug</blockquote><div>š</div></div>Does not MSVC allow member function templates to be specialized within the class directly ?<br /><br />-- Matthieu.</blockquote><p>_______________________________________________<br />cfe-commits mailing list<br /><a href="mailto:cfe-commits@cs.uiuc.edu">cfe-commits@cs.uiuc.edu</a><br /><a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits</a></p></blockquote>