Summary
All module exports after interface: are ignored
Metadata
- Id: b220f60c4385f52a5502c145ee8e4c22f14c14ee
- Trac id: 1482
- Type: defect
- Reporter: megane
- Owner:
- Cc:
- Status: closed
- Component: compiler
- Estimated difficulty: trivial
- Resolution: fixed
- Priority: major
- Milestone: someday
- Version: 5.0.0
- Changetime: 2018-07-16 08:28:32 UTC
- Created: 2018-07-07 09:44:24 UTC
- Keywords: modules export interface
Attachments
- b220f60c4385f52a5502c145ee8e4c22f14c14ee/attachments/two-should-not.scm
Description
As reported by Martin Schneeweis on the chicken-hackers mailing list http://lists.nongnu.org/archive/html/chicken-hackers/2018-07/msg00010.html, there seems to be a problem with exports involving `interface:` forms.
The problem seems to be a simple bug in `##sys#validate-exports`.
Changes and comments
[2018-07-07 11:35:00 UTC] snoewchen wrote:
The mail with a less suspicious example ("export" dropped from export-forms) http://lists.nongnu.org/archive/html/chicken-hackers/2018-07/msg00012.html
Chicken 4.13 has the same problem
Attached Example: two-should-not.scm compiles without a message
csc -shared -emit-all-import-libraries two-should-not.scm
Expected message:
Warning: exported identifier of module `two-should-not' has not been defined: some-b
[2018-07-07 11:38:52 UTC] snoewchen attached two-should-not.scm (description=Example referenced by my comment)
[2018-07-16 08:28:32 UTC] evhan changed status from new to closed
[2018-07-16 08:28:32 UTC] evhan set resolution to fixed
[2018-07-16 08:28:32 UTC] evhan wrote:
Fixed by 69a3f493 (master) and b0ad8f84 (chicken-4).