Emit a lame diagnostic when we can't mangle operator names
llvm-svn: 102168
This commit is contained in:
parent
173627188d
commit
ffe0884bc4
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue