[Bug sanitizer/117259] [12 Regression] warning: 'j.6' may be used uninitialized [-Wmaybe-uninitialized] with -fsanitize=undefined
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Jul 2 21:54:39 GMT 2026
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117259
--- Comment #16 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-16 branch has been updated by Jason Merrill
<jason@gcc.gnu.org>:
https://gcc.gnu.org/g:0c80a308bfa5ed87570f047fdbc0d44c7415f15e
commit r16-9217-g0c80a308bfa5ed87570f047fdbc0d44c7415f15e
Author: Jason Merrill <jason@redhat.com>
Date: Thu Jul 2 17:54:21 2026 -0400
c++: co_await and ->* [PR121094]
The use of TARGET_EXPR in get_member_function_from_ptrfunc since r13-9563
didn't match the expectations of flatten_await_stmt; the latter isn't
prepared to handle reuse of a TARGET_EXPR. Most places in the front-end
only reuse the TARGET_EXPR_SLOT, not the whole TARGET_EXPR, but that's
awkward for get_member_function_from_ptrfunc, so let's make it work.
PR c++/121094
PR c++/117259
gcc/cp/ChangeLog:
* coroutines.cc (replace_proxy): Handle TARGET_EXPR from.
(flatten_await_stmt): Pass it.
gcc/testsuite/ChangeLog:
* g++.dg/coroutines/pmf-121094.C: New test.
(cherry picked from commit 1948a863280464ed60168d170ab13580bb6bb51b)
More information about the Gcc-bugs
mailing list