public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "gaius at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug modula2/114929] for loop fails to iterate down to zero if a cardinal type (unsigned type) is used with a step of -1. Date: Fri, 03 May 2024 00:27:37 +0000 [thread overview] Message-ID: <bug-114929-4-AtImxD0aSK@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-114929-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114929 Gaius Mulley <gaius at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Version|14.0 |15.0 --- Comment #4 from Gaius Mulley <gaius at gcc dot gnu.org> --- For completeness the test code at the top of the PR passes: $ gm2 testforloopzero.mod $ ./a.out i = 5, count = 0 i = 4, count = 1 i = 3, count = 2 i = 2, count = 3 i = 1, count = 4 i = 0, count = 5 for loop counting down passed
next prev parent reply other threads:[~2024-05-03 0:27 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2024-05-02 23:56 [Bug modula2/114929] New: " gaius at gcc dot gnu.org 2024-05-02 23:56 ` [Bug modula2/114929] " gaius at gcc dot gnu.org 2024-05-03 0:01 ` gaius at gcc dot gnu.org 2024-05-03 0:23 ` cvs-commit at gcc dot gnu.org 2024-05-03 0:27 ` gaius at gcc dot gnu.org [this message] 2024-05-03 19:48 ` cvs-commit at gcc dot gnu.org 2024-05-03 21:59 ` cvs-commit at gcc dot gnu.org 2024-05-03 22:29 ` gaius 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-114929-4-AtImxD0aSK@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: linkBe 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).