public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/99801] New: Address sanitizer false positive with pointer to member function.
@ 2021-03-28 16:07 fsb4000 at yandex dot ru
  2021-03-30  7:32 ` [Bug sanitizer/99801] " marxin at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: fsb4000 at yandex dot ru @ 2021-03-28 16:07 UTC (permalink / raw)
  To: gcc-bugs

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-12-25  6:56 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-28 16:07 [Bug c++/99801] New: Address sanitizer false positive with pointer to member function fsb4000 at yandex dot ru
2021-03-30  7:32 ` [Bug sanitizer/99801] " marxin at gcc dot gnu.org
2021-04-12  9:29 ` marxin at gcc dot gnu.org
2021-08-16 11:41 ` [Bug c++/99801] " marxin at gcc dot gnu.org
2021-08-16 11:41 ` marxin at gcc dot gnu.org
2021-11-05 16:26 ` marxin at gcc dot gnu.org
2022-12-25  6:52 ` pinskia at gcc dot gnu.org
2022-12-25  6:56 ` pinskia at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).