From 3584515018dae90848bc6d4edb156bc893b28083 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Tue, 7 Feb 2017 01:37:30 +0000 Subject: P0091R3: Implement basic parsing support for C++17 deduction-guides. We model deduction-guides as functions with a new kind of name that identifies the template whose deduction they guide; the bulk of this patch is adding the new name kind. This gives us a clean way to attach an extensible list of guides to a class template in a way that doesn't require any special handling in AST files etc (and we're going to need these functions we come to performing deduction). llvm-svn: 294266 --- clang/lib/Sema/SemaTemplateVariadic.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'clang/lib/Sema/SemaTemplateVariadic.cpp') diff --git a/clang/lib/Sema/SemaTemplateVariadic.cpp b/clang/lib/Sema/SemaTemplateVariadic.cpp index 54556b505ee..4ea04ac143a 100644 --- a/clang/lib/Sema/SemaTemplateVariadic.cpp +++ b/clang/lib/Sema/SemaTemplateVariadic.cpp @@ -321,6 +321,7 @@ bool Sema::DiagnoseUnexpandedParameterPack(const DeclarationNameInfo &NameInfo, case DeclarationName::CXXOperatorName: case DeclarationName::CXXLiteralOperatorName: case DeclarationName::CXXUsingDirective: + case DeclarationName::CXXDeductionGuideName: return false; case DeclarationName::CXXConstructorName: -- cgit v1.2.3