[Bug c++/105595] Coroutines can trigger -Wsubobject-linkage

2024-08-06 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105595 --- Comment #8 from Arsen Arsenović --- indeed, but that's also true for the functions, no?

[Bug c++/105595] Coroutines can trigger -Wsubobject-linkage

2024-08-06 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105595 Arsen Arsenović changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug c++/116178] wish: command line -std=c++newest

2024-08-01 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116178 --- Comment #3 from Arsen Arsenović --- +1, 'latest' might be a bit of a footgun > I would be happier with -std=c++experimental or possibly -std=c++next or both, for latest released and latest draft standard revisions

[Bug middle-end/109224] Wmismatched-new-delete false positive with a templated operator new (common with coroutines)

2024-08-01 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109224 --- Comment #6 from Arsen Arsenović --- so, indeed, this appears to fix the original testcase: modified gcc/gimple-ssa-warn-access.cc @@ -1762,7 +1762,16 @@ new_delete_mismatch_p (tree new_decl, tree delete_decl) void *np = NULL, *dp =

[Bug middle-end/109224] Wmismatched-new-delete false positive with a templated operator new (common with coroutines)

2024-08-01 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109224 --- Comment #5 from Arsen Arsenović --- (actually, it's simpler to make the operator new simply have template in the reproducer rather than the pack constrained to size 0)

[Bug middle-end/109224] Wmismatched-new-delete false positive with a templated operator new (common with coroutines)

2024-08-01 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109224 Arsen Arsenović changed: What|Removed |Added Summary|Wmismatched-new-delete |Wmismatched-new-delete

[Bug c++/105595] Coroutines can trigger -Wsubobject-linkage

2024-07-31 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105595 --- Comment #4 from Arsen Arsenović --- hm, actually, is this valid code? in https://eel.is/c++draft/basic.def.odr#15 the standard says: For any definable item D with definitions in multiple translation units, - (15.1) if D is a non-inline

[Bug middle-end/116151] [12/13/14/15 Regression] G++ fails to diagnose -Waggressive-loop-optimizations when going past the end of an array

2024-07-30 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116151 --- Comment #2 from Arsen Arsenović --- I suspect this is due to EH - -fno-exceptions fixes the C++ case, as does noexcept, and -fexceptions breaks the C case.

[Bug c++/116151] New: [7.1 Regression] G++ fails to diagnose -Waggressive-loop-optimizations when going past the end of an array

2024-07-30 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116151 Bug ID: 116151 Summary: [7.1 Regression] G++ fails to diagnose -Waggressive-loop-optimizations when going past the end of an array Product: gcc Version: 7.1.0

[Bug c++/115908] [coroutines] Wrong behavior of using get_return_object() when creating coroutines

2024-07-30 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115908 Arsen Arsenović changed: What|Removed |Added CC||arsen at gcc dot gnu.org Last

[Bug c++/113773] coroutines: promise deconstructed twice if throwing from return object

2024-07-30 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113773 Arsen Arsenović changed: What|Removed |Added Last reconfirmed||2024-07-30 CC|

[Bug ipa/115309] Simple coroutine based generator is not optimized well

2024-07-30 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115309 Arsen Arsenović changed: What|Removed |Added CC||arsen at gcc dot gnu.org Last

[Bug c++/104981] [coroutines] Internal compiler error when promise object's constructor takes a base class of the object parameter

2024-07-30 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104981 Arsen Arsenović changed: What|Removed |Added CC||netcan1996 at gmail dot com ---

[Bug c++/54367] [meta-bug] lambda expressions

2024-07-30 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54367 Bug 54367 depends on bug 103358, which changed state. Bug 103358 Summary: what is the first constructor argument of lambda coroutine promise_type? https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103358 What|Removed

[Bug c++/103358] what is the first constructor argument of lambda coroutine promise_type?

2024-07-30 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103358 Arsen Arsenović changed: What|Removed |Added CC||arsen at gcc dot gnu.org

[Bug c++/110855] std::source_location doesn't work with C++20 coroutine

2024-07-30 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110855 Arsen Arsenović changed: What|Removed |Added CC||redbeard0531 at gmail dot com ---

[Bug c++/102363] source_location in await_transform has function_name referring to internal coroutine funclet rather than source-level function

2024-07-30 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102363 Arsen Arsenović changed: What|Removed |Added CC||arsen at gcc dot gnu.org

[Bug c++/106667] Diagnosing misuses of capturing lambda coroutines

2024-07-30 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106667 Arsen Arsenović changed: What|Removed |Added Status|UNCONFIRMED |NEW Severity|normal

[Bug middle-end/109224] Wmismatched-new-delete false positive with coroutines

2024-07-30 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109224 Arsen Arsenović changed: What|Removed |Added Ever confirmed|0 |1 CC|

[Bug c++/112341] error: insufficient contextual information to determine type on co_await result in function template

2024-07-30 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112341 Arsen Arsenović changed: What|Removed |Added Status|NEW |ASSIGNED

[Bug c++/110855] std::source_location doesn't work with C++20 coroutine

2024-07-30 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110855 Arsen Arsenović changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Bug c++/115906] [coroutines] missing diagnostic and ICE when co_await used as default argument in function declaration

2024-07-30 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115906 Arsen Arsenović changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug c++/111728] C++ 20 coroutine segmentation fault in generic lambda

2024-07-29 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111728 Arsen Arsenović changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |arsen at gcc dot gnu.org

[Bug c++/105475] coroutines: ICE in coerce_template_parms, at cp/pt.cc:9183

2024-07-27 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105475 Arsen Arsenović changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |arsen at gcc dot gnu.org

[Bug c++/110171] [[nodiscard]] of await_resume ignored when discarding result of co_await expression

2024-07-25 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110171 Arsen Arsenović changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |arsen at gcc dot gnu.org

[Bug c++/103868] ICE at end of coroutine when using asio

2024-07-25 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103868 Arsen Arsenović changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Bug c++/101367] [coroutines] destructor for capture in lambda temporary operand to co_yield expression called twice

2024-07-25 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101367 Arsen Arsenović changed: What|Removed |Added CC||nilsgladitz at gmail dot com ---

[Bug c++/100611] coroutines: destructor called too many times for coroutine lambda stored object

2024-07-25 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100611 Arsen Arsenović changed: What|Removed |Added Resolution|--- |DUPLICATE Status|NEW

[Bug c++/95457] Inadequate diagnostics on constrained coroutines

2024-07-23 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95457 Arsen Arsenović changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever confirmed|0

[Bug tree-optimization/116057] Miscompilation of nodejs with -ftree-slp-vectorize on arm64 and probably others

2024-07-23 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116057 Arsen Arsenović changed: What|Removed |Added CC||arsen at gcc dot gnu.org --- Comment

[Bug c++/115660] internal compiler error: in build_special_member_call, at cp/call.cc:11085

2024-07-23 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115660 Arsen Arsenović changed: What|Removed |Added CC||arsen at gcc dot gnu.org,

[Bug c++/103953] Leak of coroutine return object

2024-07-23 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103953 Arsen Arsenović changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c++/105475] coroutines: ICE in coerce_template_parms, at cp/pt.cc:9183

2024-07-22 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105475 --- Comment #3 from Arsen Arsenović --- ah, seems that we're missing handling of error_mark_node in a few places while processing a coroutine, causing the middle-end to be confused later. I'll leave that for later.

[Bug c++/109867] -Wswitch-default reports missing default in coroutine

2024-07-22 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109867 --- Comment #3 from Arsen Arsenović --- (In reply to Arsen Arsenović from comment #2) > this corresponds to the four switches emitted for the coroutine > implementation after morphing these fns into coroutine functions. the other > cases are

[Bug c++/110171] [[nodiscard]] of await_resume ignored when discarding result of co_await expression

2024-07-22 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110171 --- Comment #2 from Arsen Arsenović --- no - it is because convert_to_void does not know how to warn about discarded co_awaits, and it does not get re-invoked when we expand co_awaits

[Bug libstdc++/115907] Libstdc++ and GCC itself should avoid glibc above 2.34 dependency

2024-07-21 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115907 Arsen Arsenović changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug libstdc++/115907] Libstdc++ and GCC itself should avoid glibc above 2.34 dependency

2024-07-21 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115907 --- Comment #48 from Arsen Arsenović --- Please stop resetting the bug status. You create unneeded churn. This bug is invalid. (In reply to cqwrteur from comment #43) > This is completely BS. Old libc cannot build with the latest gcc since

[Bug c++/104981] [coroutines] Internal compiler error when promise object's constructor takes a base class of the object parameter

2024-07-21 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104981 Arsen Arsenović changed: What|Removed |Added CC||arsen at gcc dot gnu.org --- Comment

[Bug c++/105475] coroutines: ICE in coerce_template_parms, at cp/pt.cc:9183

2024-07-18 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105475 Arsen Arsenović changed: What|Removed |Added CC||arsen at gcc dot gnu.org --- Comment

[Bug c++/99575] [coroutines] unexpected move when co_awaiting a nonmoveable object

2024-07-18 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99575 Arsen Arsenović changed: What|Removed |Added CC||fchelnokov at gmail dot com ---

[Bug c++/103963] Coroutine return type needs not be copy- or move-constructible

2024-07-18 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103963 Arsen Arsenović changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug c++/102217] co_awaiting a temporary produced by ternary operator crashes (double-free)

2024-07-18 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102217 Arsen Arsenović changed: What|Removed |Added CC||arsen at gcc dot gnu.org --- Comment

[Bug c++/110855] std::source_location doesn't work with C++20 coroutine

2024-07-18 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110855 --- Comment #5 from Arsen Arsenović --- agreed, but note that it still gives us the name of the actor function: pr110855.C:51:1ReturnObject bar(int) pr110855.C:51:1void bar(bar(int)::_Z3bari.Frame*) (the latter print is from

[Bug bootstrap/115951] [15 Regression] pgo+lto enabled bootstrap fails building gnat (ICE in fold_stmt, at gimple-range-fold.cc:701)

2024-07-17 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115951 --- Comment #6 from Arsen Arsenović --- *** Bug 115918 has been marked as a duplicate of this bug. ***

[Bug ada/115918] [15 regression] Bootstrap failure in GNAT with --with-build-config=bootstrap-lto --enable-languages=c,ada,c++,lto

2024-07-17 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115918 Arsen Arsenović changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c++/109867] -Wswitch-default reports missing default in coroutine

2024-07-16 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109867 Arsen Arsenović changed: What|Removed |Added Status|UNCONFIRMED |NEW CC|

[Bug c++/108643] Initializing parameter by ref in coroutine function causes memory corruption

2024-07-16 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108643 Arsen Arsenović changed: What|Removed |Added CC||arsen at gcc dot gnu.org --- Comment

[Bug sanitizer/105336] truncated address sanitizer stack traces, coroutines + -Og

2024-07-16 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105336 Arsen Arsenović changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever confirmed|0

[Bug c++/101133] [coroutines] co_await doesn't accept a valid awaitable object if await_resume()'s return type is not a built-in type.

2024-07-16 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101133 Arsen Arsenović changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug c++/109323] No error when neither of return_value or return_void is defined

2024-07-16 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109323 --- Comment #8 from Arsen Arsenović --- iota did come to mind while I was typing that, but my thinking is that it is far more likely to be unintended, hence my thinking

[Bug c++/105301] [11 Regression] ICE: tree check: expected tree that contains 'decl minimal' structure, have 'overload' in coro_promise_type_found_p, at cp/coroutines.cc:516

2024-07-16 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105301 Arsen Arsenović changed: What|Removed |Added CC||arsen at gcc dot gnu.org

[Bug c++/112341] error: insufficient contextual information to determine type on co_await result in function template

2024-07-16 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112341 Arsen Arsenović changed: What|Removed |Added CC||arsen at gcc dot gnu.org --- Comment

[Bug c++/105574] coroutines: ICE when co_yield a r-value vector of non-POD type

2024-07-16 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105574 Arsen Arsenović changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Bug c++/109323] No error when neither of return_value or return_void is defined

2024-07-16 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109323 Arsen Arsenović changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED

[Bug c++/110171] [[nodiscard]] of await_resume ignored when discarding result of co_await expression

2024-07-16 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110171 Arsen Arsenović changed: What|Removed |Added Keywords||diagnostic Ever confirmed|0

[Bug c++/110855] std::source_location doesn't work with C++20 coroutine

2024-07-16 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110855 Arsen Arsenović changed: What|Removed |Added CC||arsen at gcc dot gnu.org --- Comment

[Bug c++/107768] Bogus -Wzero-as-null-pointer-constant in coroutine

2024-07-16 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107768 Arsen Arsenović changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Bug c++/105595] Coroutines can trigger -Wsubobject-linkage

2024-07-16 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105595 Arsen Arsenović changed: What|Removed |Added CC||arsen at gcc dot gnu.org --- Comment

[Bug c++/103963] Coroutine return type needs not be copy- or move-constructible

2024-07-16 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103963 Arsen Arsenović changed: What|Removed |Added CC||arsen at gcc dot gnu.org --- Comment

[Bug c++/101367] [coroutines] destructor for capture in lambda temporary operand to co_yield expression called twice

2024-07-16 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101367 Arsen Arsenović changed: What|Removed |Added CC||benni.buch at gmail dot com ---

[Bug c++/104872] Memory corruption in Coroutine with POD type

2024-07-16 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104872 Arsen Arsenović changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Bug c++/103953] Leak of coroutine return object

2024-07-16 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103953 --- Comment #2 from Arsen Arsenović --- seems to have been r12-9435-g6fd32842404ac1.

[Bug sanitizer/105336] truncated address sanitizer stack traces, coroutines + -Og

2024-07-16 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105336 Arsen Arsenović changed: What|Removed |Added CC||arsen at gcc dot gnu.org --- Comment

[Bug c++/103953] Leak of coroutine return object

2024-07-16 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103953 Arsen Arsenović changed: What|Removed |Added CC||arsen at gcc dot gnu.org --- Comment

[Bug c++/95457] Inadequate diagnostics on constrained coroutines

2024-07-16 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95457 Arsen Arsenović changed: What|Removed |Added CC||arsen at gcc dot gnu.org --- Comment

[Bug bootstrap/115951] [15 Regression] pgo+lto enabled bootstrap fails building gnat (ICE in fold_stmt, at gimple-range-fold.cc:701)

2024-07-16 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115951 Arsen Arsenović changed: What|Removed |Added CC||arsen at gcc dot gnu.org --- Comment

[Bug c++/101367] [coroutines] destructor for capture in lambda temporary operand to co_yield expression called twice

2024-07-16 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101367 Arsen Arsenović changed: What|Removed |Added CC||johannes.kalmbach@googlemai

[Bug c++/103909] coroutines: co_yield of aggregate-initialized temporaries leads to segmentation faults.

2024-07-16 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103909 Arsen Arsenović changed: What|Removed |Added CC||arsen at gcc dot gnu.org

[Bug c++/103868] ICE at end of coroutine when using asio

2024-07-15 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103868 Arsen Arsenović changed: What|Removed |Added CC||netcan1996 at gmail dot com ---

[Bug c++/102707] template coroutine generated code failed

2024-07-15 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102707 Arsen Arsenović changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c++/115906] [coroutines] missing diagnostic and ICE when co_await used as default argument in function declaration

2024-07-15 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115906 Arsen Arsenović changed: What|Removed |Added Keywords||diagnostic, |

[Bug c++/115858] Incompatibility of coroutines and alloca()

2024-07-15 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115858 Arsen Arsenović changed: What|Removed |Added Ever confirmed|0 |1 Last reconfirmed|

[Bug c++/101367] [coroutines] destructor for capture in lambda temporary operand to co_yield expression called twice

2024-07-15 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101367 Arsen Arsenović changed: What|Removed |Added CC||hodges.r at gmail dot com ---

[Bug c++/101367] [coroutines] destructor for capture in lambda temporary operand to co_yield expression called twice

2024-07-15 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101367 Arsen Arsenović changed: What|Removed |Added CC||dje at gcc dot gnu.org --- Comment

[Bug c++/98401] coroutines: Temporaries passed to co_await sometimes cause an extraneous call to destructor at incorrect address

2024-07-15 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98401 Arsen Arsenović changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c++/107239] Coroutine code generation bug

2024-07-15 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107239 Arsen Arsenović changed: What|Removed |Added Resolution|--- |DUPLICATE Status|NEW

[Bug c++/107288] coroutines: Double-free of temporaries created in statement following co_await

2024-07-15 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107288 Arsen Arsenović changed: What|Removed |Added Resolution|--- |DUPLICATE Status|NEW

[Bug c++/101367] [coroutines] destructor for capture in lambda temporary operand to co_yield expression called twice

2024-07-15 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101367 Arsen Arsenović changed: What|Removed |Added CC||max at duempel dot org --- Comment

[Bug c++/101367] [coroutines] destructor for capture in lambda temporary operand to co_yield expression called twice

2024-07-15 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101367 Arsen Arsenović changed: What|Removed |Added CC||brandt.milo2 at gmail dot com ---

[Bug c++/104384] coroutines: Heap corruption when initializing struct with co_await

2024-07-15 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104384 Arsen Arsenović changed: What|Removed |Added CC||arsen at gcc dot gnu.org

[Bug c++/98401] coroutines: Temporaries passed to co_await sometimes cause an extraneous call to destructor at incorrect address

2024-07-15 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98401 Arsen Arsenović changed: What|Removed |Added CC||arsen at gcc dot gnu.org --- Comment

[Bug c++/114142] [coroutines]: internal compiler error: tree check: expected record_type or union_type or qual_union_type, have reference_type in lookup_base, at cp/search.cc:252

2024-07-15 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114142 Arsen Arsenović changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED CC|

[Bug c++/104981] [coroutines] Internal compiler error when promise object's constructor takes a base class of the object parameter

2024-07-15 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104981 Arsen Arsenović changed: What|Removed |Added CC||ldalessandro at gmail dot com ---

[Bug c++/105989] Coroutine frame space for temporaries in a co_await expression is not reused

2024-07-15 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105989 --- Comment #9 from Arsen Arsenović --- a ping might suffice then (Iain also wants to see this optimization, it'd seem)

[Bug c++/110635] Segmentation fault when the awaiter's await_resume in initial-suspend returns a class type.

2024-07-15 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110635 Arsen Arsenović changed: What|Removed |Added Last reconfirmed||2024-07-15 Ever confirmed|0

[Bug c++/105406] [11 Regression] coroutines: since 11.3 co_await attempts to copy a move-only value when await_transform(T &) exists

2024-07-15 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105406 Arsen Arsenović changed: What|Removed |Added CC||lbqq at gmail dot com ---

[Bug c++/101992] new object was created erroneously when co_await on function call that return lvalue reference

2024-07-15 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101992 Arsen Arsenović changed: What|Removed |Added CC||arsen at gcc dot gnu.org

[Bug c++/109682] coroutines: ICE in morph_fn_to_coro on wrong return type for get_return_object_on_allocation_failure

2024-07-14 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109682 --- Comment #3 from Arsen Arsenović --- further reduced reproducer (this one should also be fully valid): #include #include struct test { test () {} test (int) {} struct promise_type { test get_return_object () { return {}; }

[Bug c++/109682] coroutines: ICE in morph_fn_to_coro on wrong return type for get_return_object_on_allocation_failure

2024-07-14 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109682 Arsen Arsenović changed: What|Removed |Added Last reconfirmed||2024-07-14

[Bug c++/105989] Coroutine frame space for temporaries in a co_await expression is not reused

2024-07-14 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105989 Arsen Arsenović changed: What|Removed |Added CC||arsen at gcc dot gnu.org --- Comment

[Bug c++/102707] template coroutine generated code failed

2024-07-14 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102707 Arsen Arsenović changed: What|Removed |Added CC||arsen at gcc dot gnu.org --- Comment

[Bug ada/115918] Bootstrap failure in GNAT with --with-build-config=bootstrap-lto --enable-languages=c,ada,c++,lto

2024-07-14 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115918 --- Comment #2 from Arsen Arsenović --- Created attachment 58660 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58660=edit fail.log but with the patchlet applied No, at least not entirely.

[Bug libstdc++/113460] Segfault in __builtin_coro_destroy when using std::generator to concate ranges

2024-07-14 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113460 --- Comment #4 from Arsen Arsenović --- actually, it seems to be the comma, not the fold; the following also fails: #include #include #include #include using namespace std; template [[nodiscard]] auto concat(Range1&& range1, Range2&&

[Bug c++/115914] SIGSEGV when std::generator co_yield different ranges of elements

2024-07-14 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115914 Arsen Arsenović changed: What|Removed |Added CC||arsen at gcc dot gnu.org

[Bug libstdc++/113460] Segfault in __builtin_coro_destroy when using std::generator to concate ranges

2024-07-14 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113460 Arsen Arsenović changed: What|Removed |Added CC||hewillk at gmail dot com --- Comment

[Bug ada/115918] New: Bootstrap failure in GNAT with --with-build-config=bootstrap-lto --enable-languages=c,ada,c++,lto

2024-07-14 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115918 Bug ID: 115918 Summary: Bootstrap failure in GNAT with --with-build-config=bootstrap-lto --enable-languages=c,ada,c++,lto Product: gcc Version: 15.0

[Bug ada/115917] New: GNAT fails to bootstrap with LTO and -Werror=lto-type-mismatch due to C_Version_String and gnat_version_string on x86_64-pc-linux-gnu

2024-07-14 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115917 Bug ID: 115917 Summary: GNAT fails to bootstrap with LTO and -Werror=lto-type-mismatch due to C_Version_String and gnat_version_string on x86_64-pc-linux-gnu Product: gcc

[Bug libstdc++/113460] Segfault in __builtin_coro_destroy when using std::generator to concate ranges

2024-07-14 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113460 --- Comment #2 from Arsen Arsenović --- this is a double-free it would seem. but, the following works: #include #include #include #include using namespace std; template [[nodiscard]] auto concat(Range1&& range1, Range2&& range2) ->

[Bug libstdc++/115907] Libstdc++ and GCC itself should avoid glibc above 2.34 dependency

2024-07-13 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115907 --- Comment #38 from Arsen Arsenović --- (In reply to cqwrteur from comment #35) > Unless the "old enough glibc" won't be able to build latest GCC. Even glibc > 2.25 (which is centos stucks with). File a bug or write a patch. I'm not sure how

[Bug libstdc++/115907] Libstdc++ and GCC itself should avoid glibc above 2.34 dependency

2024-07-13 Thread arsen at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115907 --- Comment #34 from Arsen Arsenović --- (In reply to cqwrteur from comment #29) > I don't know how you do that. It is impossible to upgrade glibc on any of my > linux distributions. I tried ubuntu, arch linux. Neither of them allows me > to

  1   2   >