]> granicus.if.org Git - clang/commitdiff
Put the "'typename' occurs outside of a template" and "'template'
authorDouglas Gregor <dgregor@apple.com>
Wed, 8 Dec 2010 22:02:28 +0000 (22:02 +0000)
committerDouglas Gregor <dgregor@apple.com>
Wed, 8 Dec 2010 22:02:28 +0000 (22:02 +0000)
keyword occurs outside of a template" diagnostics under
-WC++0x-extensions.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@121290 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/DiagnosticSemaKinds.td

index 34354ce4fd07012c56d34ce66094424565f78cde..01e7962ac676f980af8b246dc181c6e8d3550203 100644 (file)
@@ -1781,7 +1781,7 @@ def note_typename_refers_here : Note<
 def err_typename_missing : Error<
   "missing 'typename' prior to dependent type name '%0%1'">;
 def ext_typename_outside_of_template : ExtWarn<
-  "'typename' occurs outside of a template">;
+  "'typename' occurs outside of a template">, InGroup<CXX0x>;
 
 def err_template_kw_refers_to_non_template : Error<
     "%0 following the 'template' keyword does not refer to a template">;
@@ -1794,7 +1794,7 @@ def note_referenced_class_template : Error<
 def err_template_kw_missing : Error<
   "missing 'template' keyword prior to dependent template name '%0%1'">;
 def ext_template_outside_of_template : ExtWarn<
-  "'template' keyword outside of a template">;
+  "'template' keyword outside of a template">, InGroup<CXX0x>;
 
 // C++0x Variadic Templates
 def err_variadic_templates_unsupported : Error<