public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "bagnara at cs dot unipr.it" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/49779] Wrong code generated for while loop with guard containing continue
Date: Wed, 20 Jul 2011 06:46:00 -0000	[thread overview]
Message-ID: <bug-49779-4-amw0WRlzPz@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-49779-4@http.gcc.gnu.org/bugzilla/>

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49779

--- Comment #4 from bagnara at cs dot unipr.it 2011-07-20 06:44:25 UTC ---
Well...  do you agree that the condition of a while loop has to be
evaluated at each iteration?  If so, then we agree that the condition
is inside the while loop, not outside.  Hence, if the condition
contains unnested breaks or continues these have to refer to the while
loop in question, not to the while/for/do/switch construction that may
(or may not) contain it.


  parent reply	other threads:[~2011-07-20  6:46 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-18 17:32 [Bug c/49779] New: " bagnara at cs dot unipr.it
2011-07-18 17:36 ` [Bug c/49779] " pinskia at gcc dot gnu.org
2011-07-18 17:42 ` bagnara at cs dot unipr.it
2011-07-18 17:51 ` pinskia at gcc dot gnu.org
2011-07-20  6:46 ` bagnara at cs dot unipr.it [this message]
2011-07-20  7:11 ` jakub at gcc dot gnu.org
2011-07-21 14:26 ` joseph at codesourcery dot com

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-49779-4-amw0WRlzPz@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).