[clang][Sema] Fix access checking in nested concept-id substitution (#246811)
fixes #246008
Access-control failures during concept satisfaction are diagnosed as
SFINAE and recorded on the active `SFINAETrap`, but
`Sema::SubstTemplateArgumentsInParameterMapping` can still return
success. In
`ConstraintSatisfactionChecker::SubstitutionInTemplateArguments`, the
trap was only checked when substitution returned failure. As a result, a
private-member access used in a nested concept-id argument could be
ignored, and the enclosing concept could be incorrectly satisfied.
Check `Trap.hasErrorOccurred()` after parameter-mapping substitution and
consume the SFINAE diagnostic, matching the existing atomic-constraint
handling.
Signed-off-by: Shashwat Agrawal <shashwatagrawal473@gmail.com>