diff options
author | Hubert Tong <hubert.reinterpretcast@gmail.com> | 2017-02-10 02:46:19 +0000 |
---|---|---|
committer | Hubert Tong <hubert.reinterpretcast@gmail.com> | 2017-02-10 02:46:19 +0000 |
commit | 5a8ec4e287f51cd64351d7c5be63c498e7d85f07 (patch) | |
tree | a77c931a539a202840fd301c6b56d261d21258ec /clang/lib/Serialization/ASTReaderDecl.cpp | |
parent | 48b4b047005f5680452dcaa0a4811fb3b2cfb8bb (diff) | |
download | bcm5719-llvm-5a8ec4e287f51cd64351d7c5be63c498e7d85f07.tar.gz bcm5719-llvm-5a8ec4e287f51cd64351d7c5be63c498e7d85f07.zip |
[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
llvm-svn: 294697
Diffstat (limited to 'clang/lib/Serialization/ASTReaderDecl.cpp')
-rw-r--r-- | clang/lib/Serialization/ASTReaderDecl.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Serialization/ASTReaderDecl.cpp b/clang/lib/Serialization/ASTReaderDecl.cpp index 5638cdfde5d..6da820f09a4 100644 --- a/clang/lib/Serialization/ASTReaderDecl.cpp +++ b/clang/lib/Serialization/ASTReaderDecl.cpp @@ -1876,6 +1876,7 @@ DeclID ASTDeclReader::VisitTemplateDecl(TemplateDecl *D) { DeclID PatternID = ReadDeclID(); NamedDecl *TemplatedDecl = cast_or_null<NamedDecl>(Reader.GetDecl(PatternID)); TemplateParameterList *TemplateParams = Record.readTemplateParameterList(); + // FIXME handle associated constraints D->init(TemplatedDecl, TemplateParams); return PatternID; |