Skip to content

Commit 6a6c7f2

Browse files
Collect pending Changes entries for 2026-11-14 []
1 parent 177765b commit 6a6c7f2

3 files changed

Lines changed: 36 additions & 32 deletions

File tree

‎src/Changes‎

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,41 @@
11
Version 7.1
22

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+
339
11/13/26 [GH #520]
440
Lowering of <=> and the evaluation of its operands
541

‎src/pending_changes/gh-532-alias-ctad-noexcept-template-call.txt‎

Lines changed: 0 additions & 18 deletions
This file was deleted.

‎src/pending_changes/gh-533-alias-ctad-pack-requires.txt‎

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)