diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2017-02-10 20:39:58 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2017-02-10 20:39:58 +0000 |
commit | d4bb5a2e4c8de25d26b2b12a33541c27e99e8320 (patch) | |
tree | 730d5ef1bbddcea99df96980f41a8ccbeb6239eb /include/clang/Basic/DiagnosticSemaKinds.td | |
parent | a0274b758ece622aad873bdade2e976f44350218 (diff) |
[c++1z] Enforce restriction that deduction guide is declared in the same scope as its template.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@294778 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/DiagnosticSemaKinds.td')
-rw-r--r-- | include/clang/Basic/DiagnosticSemaKinds.td | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/clang/Basic/DiagnosticSemaKinds.td b/include/clang/Basic/DiagnosticSemaKinds.td index 4b199c6235..6bf33897d5 100644 --- a/include/clang/Basic/DiagnosticSemaKinds.td +++ b/include/clang/Basic/DiagnosticSemaKinds.td @@ -1993,6 +1993,8 @@ def err_deduction_guide_name_not_class_template : Error< "cannot specify deduction guide for " "%select{<error>|function template|variable template|alias template|" "template template parameter|dependent template name}0 %1">; +def err_deduction_guide_wrong_scope : Error< + "deduction guide must be declared in the same scope as template %q0">; def err_deduction_guide_defines_function : Error< "deduction guide cannot have a function definition">; def err_deduction_guide_explicit_mismatch : Error< |