public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "albrecht.guendel at web dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/114904] Bogus Warning [-Wreturn-type] in function with do-while loop
Date: Wed, 01 May 2024 14:16:37 +0000	[thread overview]
Message-ID: <bug-114904-4-hSXp8mD9jw@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-114904-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #1 from Albi <albrecht.guendel at web dot de> ---
This "bug" can be closed and deleted. I am an idiot and i am sorry.
'continue' does not jump to the start of the loop, but to the next
loop-condition-check, so in a do-while loop, it actually jumps to the bottom.

Man, after 20 years of c++ !!!

  reply	other threads:[~2024-05-01 14:16 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-01 12:25 [Bug c++/114904] New: " albrecht.guendel at web dot de
2024-05-01 14:16 ` albrecht.guendel at web dot de [this message]
2024-05-01 17:20 ` [Bug c++/114904] " pinskia at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-114904-4-hSXp8mD9jw@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).