|
1 | 1 | Version 7.1 |
2 | 2 |
|
| 3 | +11/14/26 [GH #533] |
| 4 | +Alias template CTAD with a constrained constructor of a variadic class template |
| 5 | + |
| 6 | +Class template argument deduction through an alias template could read freed |
| 7 | +memory, and possibly crash, when a constructor of the underlying class |
| 8 | +template had a parameter pack and a requires clause, e.g. aliases of |
| 9 | +std::tuple with libstdc++. For example, with --c++20: |
| 10 | + |
| 11 | + template<typename... E> struct S { |
| 12 | + static constexpr bool c = true; |
| 13 | + S(E...) requires c {} |
| 14 | + }; |
| 15 | + template<typename... T> using A = S<T...>; |
| 16 | + A a{1}; |
| 17 | + |
| 18 | + |
| 19 | +11/14/26 [GH #532] |
| 20 | +Alias template CTAD with a template-id in a constructor noexcept specification |
| 21 | + |
| 22 | +Class template argument deduction through an alias template could crash |
| 23 | +when the noexcept specification of a constructor template of the underlying |
| 24 | +class template called a member function template with the constructor's |
| 25 | +template parameter pack as explicit template arguments, e.g. aliases of |
| 26 | +std::tuple with libstdc++. The explicit template arguments were substituted |
| 27 | +twice. For example, with --c++20: |
| 28 | + |
| 29 | + template<typename... E> struct S { |
| 30 | + template<typename... U> static constexpr bool n() { return true; } |
| 31 | + S(const E&...) {} |
| 32 | + template<typename... U> S(U&&...) noexcept(n<U...>()) {} |
| 33 | + }; |
| 34 | + template<typename X, typename T> struct F {}; |
| 35 | + template<typename X, typename... T> using A = S<F<X, T>...>; |
| 36 | + A a{F<int, int>{}}; |
| 37 | + |
| 38 | + |
3 | 39 | 11/13/26 [GH #520] |
4 | 40 | Lowering of <=> and the evaluation of its operands |
5 | 41 |
|
|
0 commit comments