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/112984] New: Compiling program with -Wpedantic shows warning in libraries Date: Tue, 12 Dec 2023 10:44:04 +0000 [thread overview] Message-ID: <bug-112984-4@http.gcc.gnu.org/bugzilla/> (raw) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112984 Bug ID: 112984 Summary: Compiling program with -Wpedantic shows warning in libraries 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: --- Forwarded from the gm2 mailing list: Consider the hello world program below: MODULE test_hello; FROM STextIO IMPORT WriteString, WriteLn; BEGIN WriteLn; WriteString("Hello, World!"); WriteLn; WriteLn; END test_hello. if compiled with -Wpedantic gm2 -fiso -fsoft-check-all -Wpedantic test_hello.mod /home/gaius/opt/lib/gcc/x86_64-pc-linux-gnu/14.0.0/m2/m2iso/SYSTEM.mod:31:1: error: In implementation module ‘SYSTEM’: symbol (memcpy) has already been imported 31 | CONST | ^~~~~ /home/gaius/opt/lib/gcc/x86_64-pc-linux-gnu/14.0.0/m2/m2iso/M2RTS.mod:35:1: error: In implementation module ‘M2RTS’: symbol (ADDRESS) has already been imported 35 | FROM ASCII IMPORT nl, nul ; | ^~~~ /home/gaius/opt/lib/gcc/x86_64-pc-linux-gnu/14.0.0/m2/m2iso/TextIO.mod:31:1: error: In implementation module ‘TextIO’: symbol (IOChan) has already been imported 31 | FROM SYSTEM IMPORT ADR ; | ^~~~ /home/gaius/opt/lib/gcc/x86_64-pc-linux-gnu/14.0.0/m2/m2iso/IOChan.mod:32:1: error: In implementation module ‘IOChan’: symbol (IOConsts) has already been imported 32 | FROM EXCEPTIONS IMPORT ExceptionSource, RAISE, AllocateSource, | ^~~~ /home/gaius/opt/lib/gcc/x86_64-pc-linux-gnu/14.0.0/m2/m2iso/IOLink.mod:31:1: error: In implementation module ‘IOLink’: symbol (SYSTEM) has already been imported 31 | FROM Storage IMPORT ALLOCATE, DEALLOCATE ; | ^~~~ /home/gaius/opt/lib/gcc/x86_64-pc-linux-gnu/14.0.0/m2/m2iso/IOLink.mod:31:1: error: symbol (IOChan) has already been imported /home/gaius/opt/lib/gcc/x86_64-pc-linux-gnu/14.0.0/m2/m2iso/RTfio.mod:30:1: error: In implementation module ‘RTfio’: symbol (DeviceTablePtr) has already been imported 30 | FROM RTio IMPORT GetFile ; | ^~~~ /home/gaius/opt/lib/gcc/x86_64-pc-linux-gnu/14.0.0/m2/m2iso/RTgen.mod:35:1: error: In implementation module ‘RTgen’: symbol (DeviceTablePtr) has already been imported 35 | IMPORT ChanConsts ; | ^~~~~~ /home/gaius/opt/lib/gcc/x86_64-pc-linux-gnu/14.0.0/m2/m2iso/RTgen.mod:46:1: error: symbol (doWBytes) has already been imported 46 | FROM ChanConsts IMPORT FlagSet, readFlag, writeFlag, rawFlag, | ^~~~ /home/gaius/opt/lib/gcc/x86_64-pc-linux-gnu/14.0.0/m2/m2iso/RTgen.mod:46:1: error: symbol (GenDevIF) has already been imported /home/gaius/opt/lib/gcc/x86_64-pc-linux-gnu/14.0.0/m2/m2iso/TextUtil.mod:9:1: error: In implementation module ‘TextUtil’: symbol (IOChan) has already been imported 9 | PROCEDURE SkipSpaces (cid: IOChan.ChanId) ; | ^~~~~~~~~ /home/gaius/opt/lib/gcc/x86_64-pc-linux-gnu/14.0.0/m2/m2pim/Indexing.mod:33:1: error: In implementation module ‘Indexing’: symbol (ADDRESS) has already been imported 33 | CONST shows many warnings in the libraries (and it looks as if an error should be a warning possibly).
next reply other threads:[~2023-12-12 10:44 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2023-12-12 10:44 gaius at gcc dot gnu.org [this message] 2023-12-12 10:44 ` [Bug modula2/112984] " gaius at gcc dot gnu.org 2023-12-12 16:18 ` gaius at gcc dot gnu.org 2023-12-12 19:29 ` cvs-commit at gcc dot gnu.org 2023-12-12 19:33 ` 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-112984-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).