OSDN Git Service

[Concepts] Add ExpressionEvaluationContexts to instantiation of constraints
authorSaar Raz <saar@raz.email>
Thu, 23 Jan 2020 21:24:56 +0000 (23:24 +0200)
committerSaar Raz <saar@raz.email>
Thu, 23 Jan 2020 21:24:56 +0000 (23:24 +0200)
commit4d33a8dfcf67e970ea4d150d514b27de02e79aee
treea73e8963bea606eace304f4830e31801a4ec5b30
parent9c2eb220edd5e831a17bfbde65dcc49e402d7540
[Concepts] Add ExpressionEvaluationContexts to instantiation of constraints

Proper ExpressionEvaluationContext were not being entered when instantiating constraint
expressions, which caused assertion failures in certain cases, including bug #44614.
clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
clang/test/SemaTemplate/instantiate-requires-clause.cpp