Mercury Bugs - mercury
View Issue Details
0000298mercuryBugpublic2013-09-16 15:412013-09-16 15:41
Reporterwangp 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusnewResolutionopen 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0000298: missing .mh include
Descriptionfoo1.m calls the C function declared in a (non-local) foreign_decl in foo2.m. In the low-level C grades, foo1.c does not include foo2.mh.

I think the manual suggests that it should:
"By default, the contents of `pragma foreign_decl' declarations are
also visible in the same kinds of declarations in other modules that
import the module containing the `pragma foreign_decl' declaration."

In the high-level C grades, foo1.c does include foo2.mih (mih).
TagsNo tags attached.
Attached Files? foo1.m (656) 2013-09-16 15:41
https://bugs.mercurylang.org/file_download.php?file_id=180&type=bug
? foo2.m (556) 2013-09-16 15:41
https://bugs.mercurylang.org/file_download.php?file_id=181&type=bug

There are no notes attached to this issue.

Issue History
2013-09-16 15:41wangpNew Issue
2013-09-16 15:41wangpFile Added: foo1.m
2013-09-16 15:41wangpFile Added: foo2.m