https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99801
Bug ID: 99801
Summary: Address sanitizer false positive with pointer to
member function.
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: fsb4000 at yandex dot ru
Target Milestone: ---
Hi.
Problematic piece of code: https://gcc.godbolt.org/z/s8x3KqaMb
If we change `auto` to `void (Curses_table::*)()` then it works:
https://gcc.godbolt.org/z/bezacsTPa
clang works in both cases:
https://gcc.godbolt.org/z/1e719Maa6
https://gcc.godbolt.org/z/8eqWzGzaW