]> granicus.if.org Git - clang/commit
[Concepts] Class template associated constraints
authorHubert Tong <hubert.reinterpretcast@gmail.com>
Fri, 10 Feb 2017 02:46:19 +0000 (02:46 +0000)
committerHubert Tong <hubert.reinterpretcast@gmail.com>
Fri, 10 Feb 2017 02:46:19 +0000 (02:46 +0000)
commiteac12edf439abe24e841b4da32ace117fde582b2
treea94917a2c5e10e482c9e47aaf14e377f50162107
parent1ef9dbfbac798d6e09edda41da9ce95537dfdd4e
[Concepts] Class template associated constraints

Summary:
This adds associated constraints as a property of class templates.
An error is produced if redeclarations are not similarly constrained.

Reviewers: rsmith, faisalv, aaron.ballman

Reviewed By: rsmith

Subscribers: cfe-commits, nwilson

Differential Revision: https://reviews.llvm.org/D25674

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@294697 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/DeclTemplate.h
include/clang/Basic/DiagnosticSemaKinds.td
lib/AST/DeclTemplate.cpp
lib/Sema/SemaTemplate.cpp
lib/Serialization/ASTReaderDecl.cpp
test/CXX/concepts-ts/temp/temp.constr/temp.constr.decl/class-template-decl.cpp [new file with mode: 0644]