summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-12-08 22:02:28 +0000
committerDouglas Gregor <dgregor@apple.com>2010-12-08 22:02:28 +0000
commitc8cb953c6a4b75d9387a8ee80d8f0afc6e6ee39f (patch)
treea24422d7eb1fc27471c18e95e8d848d0730f0360
parent8817135cb92b92f8c2126877f5268cccce13c29e (diff)
downloadbcm5719-llvm-c8cb953c6a4b75d9387a8ee80d8f0afc6e6ee39f.tar.gz
bcm5719-llvm-c8cb953c6a4b75d9387a8ee80d8f0afc6e6ee39f.zip
Put the "'typename' occurs outside of a template" and "'template'
keyword occurs outside of a template" diagnostics under -WC++0x-extensions. llvm-svn: 121290
-rw-r--r--clang/include/clang/Basic/DiagnosticSemaKinds.td4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/include/clang/Basic/DiagnosticSemaKinds.td b/clang/include/clang/Basic/DiagnosticSemaKinds.td
index 34354ce4fd0..01e7962ac67 100644
--- a/clang/include/clang/Basic/DiagnosticSemaKinds.td
+++ b/clang/include/clang/Basic/DiagnosticSemaKinds.td
@@ -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<
OpenPOWER on IntegriCloud