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

2022-02-04 Thread max at duempel dot org via Gcc-bugs
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: max at duempel dot org Target Milestone: --- Created attachment 52350 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52350&action=edit Crashing demo program When initializing struct members, and one

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

2021-11-19 Thread max at duempel dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102217 --- Comment #2 from Max Kellermann --- Also crashes with "gcc version 12.0.0 2027 (experimental) [master r12-5346-gd3a9082d7ac] (Debian 12-2027-1)"

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

2021-11-19 Thread max at duempel dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102217 --- Comment #1 from Max Kellermann --- Tested again with "g++-11 (Debian 11.2.0-10) 11.2.0", and my demo program still crashes.

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

2021-09-06 Thread max at duempel dot org via Gcc-bugs
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: max at duempel dot org Target Milestone: --- Created attachment 51414 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51414&action=edit Crashing demo progra

[Bug c++/96749] [coroutines] unexpected 'warning: statement has no effect [-Wunused-value]'

2020-12-04 Thread max at duempel dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96749 Max Kellermann changed: What|Removed |Added CC||max at duempel dot org --- Comment #2

[Bug c++/95491] coroutines: awaited temporaries are never destructed

2020-07-16 Thread max at duempel dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95491 --- Comment #1 from Max Kellermann --- Bug still occurs with "gcc version 10.1.0 (Debian 10.1.0-6)"

[Bug c++/95491] New: coroutines: awaited temporaries are never destructed

2020-06-02 Thread max at duempel dot org
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: max at duempel dot org Target Milestone: --- Created attachment 48665 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48665&action=edit Small program demonstrating the bug If a coroutine uses `co_awai

[Bug c++/71166] New: ICE with nested constexpr/initializer

2016-05-17 Thread max at duempel dot org
++ Assignee: unassigned at gcc dot gnu.org Reporter: max at duempel dot org Target Milestone: --- Created attachment 38508 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38508&action=edit A source file which reproduces the problem Using built-in specs. COLLEC

[Bug c++/59548] Abort after copying std::unordered_map in debug mode

2013-12-18 Thread max at duempel dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59548 --- Comment #3 from Max Kellermann --- This is a regression by svn r195253. >From the commit message: "* include/debug/unordered_map.h: Undo previous commit. Default copy and move constructors."

[Bug c++/59548] Abort after copying std::unordered_map in debug mode

2013-12-18 Thread max at duempel dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59548 --- Comment #2 from Max Kellermann --- Created attachment 31473 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31473&action=edit Delete the implicit copy constructor in C++11 mode to detect bugs like this one

[Bug c++/59548] Abort after copying std::unordered_map in debug mode

2013-12-18 Thread max at duempel dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59548 --- Comment #1 from Max Kellermann --- Created attachment 31472 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31472&action=edit Bug fix: call only _Base constructor, no implicit _Safe_sequence_base copy

[Bug c++/59548] New: Abort after copying std::unordered_map in debug mode

2013-12-18 Thread max at duempel dot org
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: max at duempel dot org Created attachment 31471 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31471&action=edit Demo code Create an std::unordered_map and save its end() to a variable. Then copy

[Bug other/51662] Temporary objects gets garbage collected in cc1

2011-12-23 Thread max at duempel dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51662 --- Comment #1 from Max Kellermann 2011-12-23 10:34:50 UTC --- Created attachment 26171 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26171 Backtrace of garbage collector; #19 is the allocation

[Bug other/51662] New: Temporary objects gets garbage collected in cc1

2011-12-23 Thread max at duempel dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51662 Bug #: 51662 Summary: Temporary objects gets garbage collected in cc1 Classification: Unclassified Product: gcc Version: 4.6.2 Status: UNCONFIRMED Severity: normal Pr

[Bug lto/43898] New: -flto -g: "tree check: expected class 'type', have 'declaration'"

2010-04-26 Thread max at duempel dot org
Severity: normal Priority: P3 Component: lto AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: max at duempel dot org GCC build triplet: x86_64-linux-gnu GCC host triplet: x86_64-linux-gnu GCC target triplet: x86_64-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43898