Mercury Bugs - mercury
View Issue Details
0000493mercuryBugpublic2020-01-22 14:502020-01-23 11:46
Reporterwangp 
Assigned Tozs 
PrioritynormalSeverityminorReproducibilityalways
StatusresolvedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0000493: MLDS ground terms bug
DescriptionMLDS backend crashes on the attached test case when --loop-invariants is enabled (or -O5).

% ./build.sh
+ mmc -s hlc.gc --make-interface codepoint
+ mmc -s hlc.gc --loop-invariants -C bug
Uncaught Mercury exception:
Software Error: map.lookup: key not found
        Key Type: term.var(parse_tree.prog_data.prog_var_type)
        Key Value: var(7)
        Value Type: ml_backend.ml_gen_info.ml_ground_term
TagsNo tags attached.
Attached Filesgz mlds_ground_term_bug.tar.gz (10,240) 2020-01-22 14:50
https://bugs.mercurylang.org/file_download.php?file_id=295&type=bug

Notes
(0001070)
zs   
2020-01-23 11:46   
Fix committed 2020 Jan 22.

Issue History
2020-01-22 14:50wangpNew Issue
2020-01-22 14:50wangpFile Added: mlds_ground_term_bug.tar.gz
2020-01-22 15:17zsAssigned To => zs
2020-01-22 15:17zsStatusnew => assigned
2020-01-23 11:46zsStatusassigned => resolved
2020-01-23 11:46zsResolutionopen => fixed
2020-01-23 11:46zsNote Added: 0001070