зеркало из https://github.com/microsoft/clang-1.git
Stub out an error so we don't crash.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@80207 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
e7624a75b7
Коммит
2a16a13881
|
@ -96,6 +96,8 @@ def err_using_requires_qualname : Error<
|
|||
"using declaration requires a qualified name">;
|
||||
def err_using_typename_non_type : Error<
|
||||
"'typename' keyword used on a non-type">;
|
||||
def err_using_dependent_unsupported : Error<
|
||||
"dependent using declaration not supported yet">;
|
||||
|
||||
def err_invalid_thread : Error<
|
||||
"'__thread' is only allowed on variable declarations">;
|
||||
|
|
|
@ -2104,6 +2104,13 @@ Sema::DeclPtrTy Sema::ActOnUsingDeclaration(Scope *S,
|
|||
else
|
||||
Name = Context.DeclarationNames.getCXXOperatorName(Op);
|
||||
|
||||
// FIXME: Implement this properly!
|
||||
if (isUnknownSpecialization(SS)) {
|
||||
Diag(IdentLoc, diag::err_using_dependent_unsupported);
|
||||
delete AttrList;
|
||||
return DeclPtrTy::make((UsingDecl*)0);
|
||||
}
|
||||
|
||||
// Lookup target name.
|
||||
LookupResult R = LookupParsedName(S, &SS, Name, LookupOrdinaryName, false);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче