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/115276] New: libgm2 wraptime.InitTM returns NIL Date: Wed, 29 May 2024 13:33:24 +0000 [thread overview] Message-ID: <bug-115276-4@http.gcc.gnu.org/bugzilla/> (raw) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115276 Bug ID: 115276 Summary: libgm2 wraptime.InitTM returns NIL 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: --- As reported on the gm2 mailing list the following code fails: MODULE hello5; FROM StrIO IMPORT WriteString, WriteLn; FROM NumberIO IMPORT WriteInt; FROM wraptime IMPORT timeval, InitTimeval, KillTimeval, gettimeofday, timezone, InitTimezone, KillTimezone, localtime_r, tm, InitTM, KillTM, GetYear, GetMonth, GetDay; VAR tv: timeval; tz: timezone; i: INTEGER; m: tm; BEGIN tv := InitTimeval(); tz := InitTimezone(); m := InitTM(); i := gettimeofday(tv, tz); m := localtime_r(tv, m); WriteString("i = "); WriteInt(i, 0); WriteLn; WriteString("Year = "); WriteInt(GetYear(m), 0); WriteLn; WriteString("Month = "); WriteInt(GetMonth(m), 0); WriteLn; WriteString("Day = "); WriteInt(GetDay(m), 0); WriteLn; m := KillTM(m); tv := KillTimeval(tv); tz := KillTimezone(tz); END hello5. reproduced by building gm2 trunk using: Configured with: ../configure --prefix=/home/gaius/opt --disable-bootstrap --disable-multilib --enable-languages=m2 $ gm2 -g hello5.mod $ ./a.out (On a debian x86_64 release 12 system)
next reply other threads:[~2024-05-29 13:33 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2024-05-29 13:33 gaius at gcc dot gnu.org [this message] 2024-05-29 13:38 ` [Bug modula2/115276] " gaius at gcc dot gnu.org 2024-05-29 15:27 ` gaius at gcc dot gnu.org 2024-05-29 16:27 ` cvs-commit at gcc dot gnu.org 2024-05-29 18: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-115276-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).