Mercury Bugs - mercury | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0000489 | mercury | Bug | public | 2020-01-09 14:31 | 2020-01-15 19:54 |
Reporter | wangp | ||||
---|---|---|---|---|---|
Assigned To | wangp | ||||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Platform | OS | OS Version | |||
Product Version | |||||
Target Version | Fixed in Version | ||||
Summary | 0000489: mmc --make gets confused by source files with same name as standard library module | ||||
Description | mmc --make gets confused by a source file in the current directory that matches the name of a standard library module, e.g. in the attached test case, lexer.m contains the sub-module `test.lexer'. Test 1 - tries to make lexer.mih from lexer.m --------------------------------------------- % mmc -s hlc.gc -m test -v Making Mercury/mihs/lexer.mih Invoking self `mmc [...] lexer' <-- not test.lexer ... lexer.m:010: In module `lexer': error: lexer.m:010: the absence of an `:- import_module' or `:- use_module' lexer.m:010: declaration for `test' prevents access to the `:- import_module' lexer.m:010: declaration for its child module `test.other'. Test 2 - likewise for .opt files -------------------------------- % mmc -s asm_fast.gc --intermod-opt -m test Making Mercury/opts/test.opt Making Mercury/opts/test.lexer.opt Making Mercury/opts/test.other.opt Making Mercury/opts/lexer.opt lexer.m:010: In module `lexer': error: lexer.m:010: the absence of an `:- import_module' or `:- use_module' lexer.m:010: declaration for `test' prevents access to the `:- import_module' lexer.m:010: declaration for its child module `test.other'. ** Error making `Mercury/opts/lexer.opt'. | ||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | mmc_make_source_filename_confusion.tar.gz (10,240) 2020-01-09 14:31 https://bugs.mercurylang.org/file_download.php?file_id=294&type=bug |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
Issue History | |||||
Date Modified | Username | Field | Change | ||
---|---|---|---|---|---|
2020-01-09 14:31 | wangp | New Issue | |||
2020-01-09 14:31 | wangp | File Added: mmc_make_source_filename_confusion.tar.gz | |||
2020-01-09 16:23 | wangp | Note Added: 0001056 | |||
2020-01-09 21:18 | zs | Note Added: 0001057 | |||
2020-01-09 21:53 | wangp | Note Added: 0001058 | |||
2020-01-11 18:57 | zs | Note Added: 0001059 | |||
2020-01-12 12:08 | wangp | Note Added: 0001060 | |||
2020-01-12 12:14 | zs | Note Added: 0001061 | |||
2020-01-12 12:55 | juliensf | Note Added: 0001062 | |||
2020-01-12 22:28 | zs | Assigned To | => zs | ||
2020-01-12 22:28 | zs | Status | new => resolved | ||
2020-01-12 22:28 | zs | Resolution | open => fixed | ||
2020-01-12 22:28 | zs | Note Added: 0001063 | |||
2020-01-13 10:49 | wangp | Assigned To | zs => wangp | ||
2020-01-13 10:49 | wangp | Status | resolved => feedback | ||
2020-01-13 10:49 | wangp | Resolution | fixed => reopened | ||
2020-01-13 10:49 | wangp | Note Added: 0001064 | |||
2020-01-15 19:54 | wangp | Status | feedback => resolved | ||
2020-01-15 19:54 | wangp | Resolution | reopened => fixed |