The code change looks fine. Please add some testcases covering valid constructs too (one of each kind of template, perhaps?). http://reviews.llvm.org/D10462 EMAIL PREFERENCES http://reviews.llvm.org/settings/panel/emailpreferences/