File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -967,7 +967,7 @@ static const Expr *SubstituteConstraintExpressionWithoutSatisfaction(
967967 // parameters that the surrounding function hasn't been instantiated yet. Note
968968 // this may happen while we're comparing two templates' constraint
969969 // equivalence.
970- LocalInstantiationScope ScopeForParameters (S);
970+ LocalInstantiationScope ScopeForParameters (S, /* CombineWithOuterScope= */ true );
971971 if (auto *FD = DeclInfo.getDecl ()->getAsFunction ())
972972 for (auto *PVD : FD->parameters ()) {
973973 if (!PVD->isParameterPack ()) {
Original file line number Diff line number Diff line change @@ -622,3 +622,19 @@ void A<T>::method(Ts&... ts)
622622 } {}
623623
624624}
625+
626+ namespace GH114685 {
627+
628+ template <typename T> struct ptr {
629+ template <typename U>
630+ friend ptr<U> make_item (auto &&args)
631+ requires(sizeof (args) > 1);
632+ };
633+
634+ template <typename U>
635+ ptr<U> make_item (auto &&args)
636+ requires(sizeof (args) > 1) {}
637+
638+ ptr<char > p;
639+
640+ } // namespace GH114685
You can’t perform that action at this time.
0 commit comments