diff --git a/regression-tests/pure2-optional-typename.cpp2 b/regression-tests/pure2-optional-typename.cpp2 index 696850e36..832e3c315 100644 --- a/regression-tests/pure2-optional-typename.cpp2 +++ b/regression-tests/pure2-optional-typename.cpp2 @@ -13,7 +13,8 @@ f: (x: T::value_type) -> T::value_type = { // Emitted `template`. ptr: type == * T; // Needed, pending #502. type: type == std::pointer_traits::rebind; // Type-only context. - _ = :std::pointer_traits::rebind = (); // Non type-only context. + // Uncomment once `typename` is supported for template arguments. + // _ = :identity::rebind> = (); // Non type-only context. // Aliases. w: type == T; diff --git a/regression-tests/test-results/pure2-optional-typename.cpp b/regression-tests/test-results/pure2-optional-typename.cpp index 9cb3dc1bb..0e0766cc0 100644 --- a/regression-tests/test-results/pure2-optional-typename.cpp +++ b/regression-tests/test-results/pure2-optional-typename.cpp @@ -15,7 +15,7 @@ template using identity = T; template [[nodiscard]] auto f(cpp2::in x) -> typename T::value_type; -#line 36 "pure2-optional-typename.cpp2" +#line 37 "pure2-optional-typename.cpp2" auto main() -> int; @@ -37,7 +37,8 @@ template [[nodiscard]] auto f(cpp2::in::template rebind;// Type-only context. - (void) typename std::pointer_traits::template rebind{};// Non type-only context. + // Uncomment once `typename` is supported for template arguments. + // _ = :identity::rebind> = (); // Non type-only context. // Aliases. using w = T;