https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118399
Bug ID: 118399
Summary: [coroutine] Stack misaligned
Product: gcc
Version: 15.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assig
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118074
--- Comment #7 from Weibo He ---
Thanks, @Yanzuo Liu
It seems there are three issues with the bug:
1. [GCC 15 Regression]: Bad interaction with NRV for the trunk
2. [GCC 15 Regression]: Return object is being prematurely converted
Clang comm
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118074
--- Comment #5 from Weibo He ---
Compiled locally using MSVC with /fsanitize=address
D:\main\build>cl /std:c++20 /fsanitize=address /Zi D:\main\src\main.cpp
Microsoft (R) C/C++ Optimizing Compiler Version 19.42.34435 for x64
Copyright (C) Micro
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118074
--- Comment #3 from Weibo He ---
Intert a printf into final_suspend helps clang and GCC 10 ~ 14 give expected
result. While GCC trunk not work.
https://godbolt.org/z/rEhevKa8h
Output(MSVC, clang, GCC 10 ~ 14):
final_suspend
A(A&&) 5
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118074
--- Comment #2 from Weibo He ---
(In reply to Andrew Pinski from comment #1)
> Is there a way to check to make sure you are not using the value after
> deconstruction for MSVC too.
Thank you for your comment @Andrew Pinski.
We can take the add
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118074
Bug ID: 118074
Summary: [coroutine] Possible over optimization of co_return
Product: gcc
Version: 15.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Compone
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117625
Bug ID: 117625
Summary: [concept] Declaration matching failed
Product: gcc
Version: 14.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117341
Bug ID: 117341
Summary: GCC 13.2.0 and 14.2.0 generate wrong code with -O3
Product: gcc
Version: 14.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Compon