View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0000298 | mercury | Bug | public | 2013-09-16 15:41 | 2013-09-16 15:41 | ||||||||
Reporter | wangp | ||||||||||||
Assigned To | |||||||||||||
Priority | normal | Severity | minor | Reproducibility | always | ||||||||
Status | new | Resolution | open | ||||||||||
Product Version | |||||||||||||
Target Version | Fixed in Version | ||||||||||||
Summary | 0000298: missing .mh include | ||||||||||||
Description | foo1.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). | ||||||||||||
Tags | No tags attached. | ||||||||||||
Attached Files |