[Bug middle-end/105204] -Wuse-after-free=1 inconsistency with conditional free

2022-12-01 Thread avi at scylladb dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105204 --- Comment #3 from Avi Kivity --- Does one have to declare all preconditions? I happen to know that shared_ptr with a reference count of zero is impossible, and I can understand the compiler not being able to infer it, but just because it's una

[Bug middle-end/105204] -Wuse-after-free=1 inconsistency with conditional free

2022-04-11 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105204 Richard Biener changed: What|Removed |Added Keywords||diagnostic CC|

[Bug middle-end/105204] -Wuse-after-free=1 inconsistency with conditional free

2022-04-08 Thread piotr.grabowski at scylladb dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105204 --- Comment #1 from Piotr Grabowski --- Created attachment 52773 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52773&action=edit example shared pointer implementation