public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug modula2/109908] New: Delete from m2iso Strings is broken
@ 2023-05-19 11:01 gaius at gcc dot gnu.org
  2023-05-19 11:02 ` [Bug modula2/109908] " gaius at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: gaius at gcc dot gnu.org @ 2023-05-19 11:01 UTC (permalink / raw)
  To: gcc-bugs

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'

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-07-29  1:04 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-19 11:01 [Bug modula2/109908] New: Delete from m2iso Strings is broken gaius at gcc dot gnu.org
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

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).