Mercury Bugs - mercury | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0000122 | mercury | Bug | public | 2009-12-18 20:18 | 2010-01-18 18:33 |
Reporter | mva | ||||
---|---|---|---|---|---|
Assigned To | mark | ||||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Platform | OS | OS Version | |||
Product Version | |||||
Target Version | Fixed in Version | ||||
Summary | 0000122: Functional dependency typeclass instance in module with sub-module int0 error | ||||
Description | I experience a bug in the Mercury compiler to do with int0 and typeclass instances. If you have an abstract typeclass instance in a module which has a sub-module, the int0 file has two instances declaration, which can lead to a self-conflicting declaration. Mercury/int0s/tcin.int0:011: Inconsistent instance declaration for typeclass Mercury/int0s/tcin.int0:011: `tc.tc'/2 with functional dependency `(A -> B)'. Mercury/int0s/tcin.int0:008: Here is the conflicting instance. ** Error making `Mercury/cs/tcin.sub.c'. While there is no conflicting typeclass instance. You can find attached a small test case exposing this bug. Commenting the include_module tcin.sub in tcin.m is sufficient to make it compile properly. | ||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | tcinsub.zip (975) 2009-12-18 20:18 https://bugs.mercurylang.org/file_download.php?file_id=91&type=bug |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
Issue History | |||||
Date Modified | Username | Field | Change | ||
---|---|---|---|---|---|
2009-12-18 20:18 | mva | New Issue | |||
2009-12-18 20:18 | mva | File Added: tcinsub.zip | |||
2010-01-04 17:40 | wangp | Note Added: 0000237 | |||
2010-01-12 17:22 | mark | Note Added: 0000243 | |||
2010-01-13 12:41 | juliensf | Status | new => assigned | ||
2010-01-13 12:41 | juliensf | Assigned To | => mark | ||
2010-01-18 18:33 | mark | Note Added: 0000246 | |||
2010-01-18 18:33 | mark | Status | assigned => resolved | ||
2010-01-18 18:33 | mark | Resolution | open => fixed |