]> granicus.if.org Git - clang/commit
[Concepts] Implement a portion of Concepts TS[dcl.spec.concept]p1 by
authorNathan Wilson <nwilson20@gmail.com>
Mon, 8 Feb 2016 05:34:00 +0000 (05:34 +0000)
committerNathan Wilson <nwilson20@gmail.com>
Mon, 8 Feb 2016 05:34:00 +0000 (05:34 +0000)
commita1698904e031fe87323d762943eb172c0da1cd90
treef2ed48621fff5aa85fef3e14acb8762076aa1567
parenteb8ffd99ee97b7ff8ca7920ced168a2e61c67762
[Concepts] Implement a portion of Concepts TS[dcl.spec.concept]p1 by
diagnosing when 'concept' is specified on a function or template
specialization.

Since a concept can only be applied to a function or variable template,
the concept bit is stored in TemplateDecl as a PointerIntPair.

Reviewers: rsmith, faisalv, aaron.ballman, hubert.reinterpretcast

Differential Revision: http://reviews.llvm.org/D13357

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@260074 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/DeclTemplate.h
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaDecl.cpp
lib/Sema/SemaTemplate.cpp
test/CXX/concepts-ts/dcl.dcl/dcl.spec/dcl.spec.concept/p1.cpp