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/115536] New: Expression is evaluated incorrectly when encountering relops and indirection Date: Tue, 18 Jun 2024 10:22:46 +0000 [thread overview] Message-ID: <bug-115536-4@http.gcc.gnu.org/bugzilla/> (raw) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115536 Bug ID: 115536 Summary: Expression is evaluated incorrectly when encountering relops and indirection Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: modula2 Assignee: gaius at gcc dot gnu.org Reporter: gaius at gcc dot gnu.org Target Milestone: --- The following code fails with: $ gm2 -g testcond2.mod $ ./a.out failed MODULE condtest2 ; FROM libc IMPORT printf, exit ; PROCEDURE test (VAR a, b, c, d: CARDINAL) ; BEGIN IF (a = b) # (c = d) THEN printf ("passed\n") ELSE printf ("failed\n") ; exit (1) END END test ; VAR e, f, g, h: CARDINAL ; BEGIN e := 1 ; f := 2 ; g := 3 ; h := 3 ; test (e, f, g, h) END condtest2.
next reply other threads:[~2024-06-18 10:22 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2024-06-18 10:22 gaius at gcc dot gnu.org [this message] 2024-06-18 10:31 ` [Bug modula2/115536] " gaius at gcc dot gnu.org 2024-06-22 17:52 ` gaius at gcc dot gnu.org 2024-06-25 17:35 ` cvs-commit at gcc dot gnu.org 2024-06-25 17:37 ` 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-115536-4@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).