https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123937
Bug ID: 123937
Summary: export from inner module is ignored
Product: gcc
Version: 15.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: modula2
Assignee: gaius at gcc dot gnu.org
Reporter: whcox53 at gmail dot com
Target Milestone: ---
exports from an inner nodule are ignored and the modula front end says the
symbol was not exported. A trivial example:
IMPLEMENTATION MODULE m1;
MODULE inner1;
EXPORT P1;
PROCEDURE P1;
END P1;
END inner1;
MODULE inner2;
FROM inner1 IMPORT P1;
END inner2;
END m1.
$ gm2 m1.mod
m1.mod:17:9: error: In inner module ‘inner2’: symbol P1 is not exported from
definition or inner module inner1
17 | END inner2;
| ^~~
w