On 2026-10-13 19:45, Jonathan Wakely via Gcc wrote:
On Tue, 13 Oct 2026 at 18:39, Gheith, Ahmed via Gcc <[email protected]> wrote:
The attached program works as expected when compiled with g++ 14 but reports
leaks with both g++ 15 and 16.
Visual inspection of the generated code suggests that it’s related to replace
an atomic sub in g++ 14 with a non-atomic one in g++ 15.
To compile: g++ -std=c++23 -pthread frame_leak.cc =
Please report this to https://gcc.gnu.org/bugzilla - thanks
Please also mention that it might be related to r15-10104-gb4da8ee3e61350 /
r16-1564-g43e408f675f8e9.
At least r15-10104 is the first commit where I can see the failure for
x86_64-linux-gnu.
Kind regards,
Torbjörn