[Bug c++/124719] [coroutines] Incorrect destruction of temporaries in for-range-initializer
ddvamp007 at gmail dot com
gcc-bugzilla@gcc.gnu.org
Tue Mar 31 08:08:31 GMT 2026
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124719
--- Comment #2 from Artyom Kolpakov <ddvamp007 at gmail dot com> ---
(In reply to Andrew Pinski from comment #1)
> What options are you using? Because the rules for temporaries changed after
> c++20 for these for loops.
--std=c++2c -O2 -pedantic -Wall -Wextra
More information about the Gcc-bugs
mailing list