[Bug c++/118399] New: [coroutine] Stack misaligned

2025-01-10 Thread newsigma at 163 dot com via Gcc-bugs
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

[Bug c++/118074] [coroutine] Possible over optimization of co_return

2024-12-20 Thread newsigma at 163 dot com via Gcc-bugs
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

[Bug c++/118074] [coroutine] Possible over optimization of co_return

2024-12-17 Thread newsigma at 163 dot com via Gcc-bugs
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

[Bug c++/118074] [coroutine] Possible over optimization of co_return

2024-12-16 Thread newsigma at 163 dot com via Gcc-bugs
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

[Bug c++/118074] [coroutine] Possible over optimization of co_return

2024-12-16 Thread newsigma at 163 dot com via Gcc-bugs
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

[Bug c++/118074] New: [coroutine] Possible over optimization of co_return

2024-12-16 Thread newsigma at 163 dot com via Gcc-bugs
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

[Bug c++/117625] New: [concept] Declaration matching failed

2024-11-16 Thread newsigma at 163 dot com via Gcc-bugs
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++

[Bug c++/117341] New: GCC 13.2.0 and 14.2.0 generate wrong code with -O3

2024-10-28 Thread newsigma at 163 dot com via Gcc-bugs
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