Skip to content

Commit 4cc57d4

Browse files
Collect pending Changes entries for 2026-10-27 []
1 parent f202555 commit 4cc57d4

4 files changed

Lines changed: 53 additions & 47 deletions

File tree

‎src/Changes‎

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

3+
10/27/26 [GH #325]
4+
GNU/Clang compatibility: argument checking for arithmetic overflow builtins
5+
6+
Previously, calls to __builtin_add_overflow, __builtin_sub_overflow, and
7+
__builtin_mul_overflow (and their GNU _p forms) could be accepted with invalid
8+
argument types or an incorrect number of arguments. These calls are now
9+
properly diagnosed. For example, with --gnu_version=150200:
10+
11+
struct S {};
12+
void f(S s, int *p) {
13+
__builtin_add_overflow(s, 1, p); // Previously accepted, now an error.
14+
}
15+
16+
17+
10/27/26 [GH #356]
18+
GNU/Clang compatibility: C++11 constexpr templates with non-return statements
19+
20+
When a statement that is not permitted in a C++11 constexpr function or
21+
constructor was accepted with a warning (for example, in a function or
22+
constructor template in some GNU or Clang C++11 modes), the function or
23+
constructor was nevertheless marked as unusable in constant expressions.
24+
That is now fixed: The function or constructor remains eligible for constant
25+
evaluation unless the diagnostic is issued as an error. For example, with
26+
--c++11 --gnu=150000:
27+
28+
template<typename T> struct S {
29+
T x;
30+
constexpr S(T i) : x(i) {
31+
if (sizeof(T) == 0) {} // Warning in C++11 mode.
32+
}
33+
};
34+
constexpr S<int> s(42); // Previously an error, now okay.
35+
36+
37+
10/27/26 [GH #395]
38+
Internal error in CTAD rescan info for reused specializations
39+
40+
An internal error ("missing default rescan info") could occur when building
41+
an implicit deduction guide for a constructor whose parameter type is a
42+
class template specialization with a nontype template argument referring to
43+
a dependent static data member, if that same specialization was already used
44+
earlier in the class (e.g., in a member declaration). For example, with
45+
--c++17:
46+
47+
template<int> struct P {};
48+
template<typename T> struct A {
49+
static constexpr bool b = sizeof(T) == 1;
50+
P<b> m;
51+
A(T, P<b>);
52+
};
53+
void g() { A{char{}, {}}; } // Previously caused an internal error.
54+
55+
356
10/23/26 [GH #327]
457
__has_unique_object_representations fixes
558

‎src/pending_changes/ctad-missing-rescan-info.txt‎

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

‎src/pending_changes/gh-325.txt‎

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

‎src/pending_changes/gh-356-cpp14-constexpr-func-in-cpp11.chng.txt‎

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

0 commit comments

Comments
 (0)