Otherwise, if the immediate scope of
P
is a function parameter scope introduced by a declaration
D,
and
P appears either before the locus of
D
or within the trailing
requires-clause of
D,
a point whose immediate scope is the innermost scope enclosing the locus of
D
that is not a template parameter scope
.