[cfe-commits] r80207 - in /cfe/trunk: include/clang/Basic/DiagnosticSemaKinds.td lib/Sema/SemaDeclCXX.cpp
Eli Friedman
eli.friedman at gmail.com
Wed Aug 26 22:09:36 PDT 2009
Author: efriedma
Date: Thu Aug 27 00:09:36 2009
New Revision: 80207
URL: http://llvm.org/viewvc/llvm-project?rev=80207&view=rev
Log:
Stub out an error so we don't crash.
Modified:
cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td
cfe/trunk/lib/Sema/SemaDeclCXX.cpp
Modified: cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td?rev=80207&r1=80206&r2=80207&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td (original)
+++ cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td Thu Aug 27 00:09:36 2009
@@ -96,6 +96,8 @@
"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">;
Modified: cfe/trunk/lib/Sema/SemaDeclCXX.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaDeclCXX.cpp?rev=80207&r1=80206&r2=80207&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaDeclCXX.cpp (original)
+++ cfe/trunk/lib/Sema/SemaDeclCXX.cpp Thu Aug 27 00:09:36 2009
@@ -2103,7 +2103,14 @@
Name = TargetName;
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);
More information about the cfe-commits
mailing list