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/109908] New: Delete from m2iso Strings is broken Date: Fri, 19 May 2023 11:01:39 +0000 [thread overview] Message-ID: <bug-109908-4@http.gcc.gnu.org/bugzilla/> (raw) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109908 Bug ID: 109908 Summary: Delete from m2iso Strings is broken Product: gcc Version: 14.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: --- Created attachment 55117 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55117&action=edit test code for m2iso Strings.Delete As reported on the gm2 mailing list the m2iso Strings.Delete is broken for example the following test code fails: $ gm2 --version gm2 (GCC) 14.0.0 20230511 (experimental) Copyright (C) 2023 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. $ gm2 -g -fiso testdelete.mod $ ./a.out after Delete string one = '1' error: string one should be empty after delete error: string one have length 0 after delete after Delete string two = '221' error: string two should be '2' after delete error: string two have length 1 after delete after Delete string three = '233221' error: string three should be '23' after delete error: string three should have length 2 after delete after Delete string four = '' after Delete string large = '01234567890123456789' after Delete string large = '01234567890123456789' after Delete string three = '133221' error: string three should be '13' after delete error: string three should have length 2 after delete after Delete string four = '13'
next reply other threads:[~2023-05-19 11:01 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2023-05-19 11:01 gaius at gcc dot gnu.org [this message] 2023-05-19 11:02 ` [Bug modula2/109908] " gaius at gcc dot gnu.org 2023-05-19 11:13 ` gaius at gcc dot gnu.org 2023-05-19 11:19 ` cvs-commit at gcc dot gnu.org 2023-05-19 11:20 ` gaius at gcc dot gnu.org 2023-07-29 1:04 ` cvs-commit 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-109908-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).