Emit a lame diagnostic when we can't mangle operator names

llvm-svn: 102168
This commit is contained in:
Douglas Gregor 2010-04-23 03:19:53 +00:00
parent 173627188d
commit ffe0884bc4
1 changed files with 5 additions and 1 deletions

View File

@ -767,7 +767,11 @@ void CXXNameMangler::mangleTemplatePrefix(TemplateName Template) {
if (Dependent->isIdentifier())
mangleSourceName(Dependent->getIdentifier());
else {
// FIXME: We can't possibly know the arity for mangling operators!
// FIXME: We can't possibly know the arity of the operator here!
Diagnostic &Diags = Context.getDiags();
unsigned DiagID = Diags.getCustomDiagID(Diagnostic::Error,
"cannot mangle dependent operator name");
Diags.Report(FullSourceLoc(), DiagID);
}
}