public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/107768] New: Bogus -Wzero-as-null-pointer-constant in coroutine
@ 2022-11-20 13:00 eaneiros at gmail dot com
  2022-12-08 20:32 ` [Bug c++/107768] " pinskia at gcc dot gnu.org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: eaneiros at gmail dot com @ 2022-11-20 13:00 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107768

            Bug ID: 107768
           Summary: Bogus -Wzero-as-null-pointer-constant in coroutine
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: eaneiros at gmail dot com
  Target Milestone: ---

Created attachment 53930
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53930&action=edit
Sample code

I was trying one of the cppreference coroutine examples and encountered what
appears to be a false positive for -Wzero-as-null-pointer-constant. See
attached for sample code.

According to godbolt.org this happens in gcc trunk. To trigger it just compile
with -Wzero-as-null-pointer-constant.

Godbolt link: https://godbolt.org/z/41aMEErx4

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

end of thread, other threads:[~2023-04-30  8:27 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-20 13:00 [Bug c++/107768] New: Bogus -Wzero-as-null-pointer-constant in coroutine eaneiros at gmail dot com
2022-12-08 20:32 ` [Bug c++/107768] " pinskia at gcc dot gnu.org
2022-12-08 21:02 ` pinskia at gcc dot gnu.org
2022-12-08 21:28 ` pinskia at gcc dot gnu.org
2022-12-08 22:28 ` pinskia at gcc dot gnu.org
2022-12-08 22:29 ` pinskia at gcc dot gnu.org
2022-12-08 22:34 ` pinskia at gcc dot gnu.org
2022-12-10 14:04 ` iains at gcc dot gnu.org
2022-12-10 15:55 ` iains at gcc dot gnu.org
2022-12-16 20:16 ` cvs-commit at gcc dot gnu.org
2023-04-30  8:27 ` cvs-commit 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).