[Bug c++/80635] std::optional and bogus -Wmaybe-uninitialized warning
dushistov at mail dot ru
gcc-bugzilla@gcc.gnu.org
Wed Jul 3 19:54:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80635
--- Comment #20 from Evgeniy Dushistov <dushistov at mail dot ru> ---
Also if add one line to code `printf("test\n");`
```
struct FooDeleter {
void operator()(FooOpaque *p) {
printf("test\n");
Foo_free(p);
}
};
```
gcc don't report any warning,
and valgrind also can not find any errors.
More information about the Gcc-bugs
mailing list