[clang] [clang][Sema] Fix access checking in nested concept-id substitution (PR #246811)
Daniel Petrovic via cfe-commits
cfe-commits at lists.llvm.org
Sun Nov 29 00:16:08 PST 2026
================
@@ -812,7 +812,12 @@ ConstraintSatisfactionChecker::SubstitutionInTemplateArguments(
// mappings to preserve the outer depths.
if (S.SubstTemplateArgumentsInParameterMapping(
Constraint.getParameterMapping(), Constraint.getBeginLoc(), MLTAL,
- SubstArgs)) {
+ SubstArgs) ||
+ Trap.hasErrorOccurred()) {
----------------
daniel-petrovic wrote:
just an observation: having SubstTemplateArgumentsInParameterMapping(...) be able to return true while an error has occurred feels a bit odd
https://github.com/llvm/llvm-project/pull/246811
More information about the cfe-commits
mailing list