www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 20488] New: Strange opDispatch error with multiple module


          Issue ID: 20488
           Summary: Strange opDispatch error with multiple module
                    compilation and the use of hashmaps
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: andrej.mitrovich gmail.com

Created attachment 1771
  --> https://issues.dlang.org/attachment.cgi?id=1771&action=edit
test case

This is the weirdest bug I have ever filed. I couldn't reduce it further, and I
reduced it to this stage manually because Dustmite took way too long.

It seems that whatever I touch, the bug will fail to reproduce. For example,
changing a hashmap into an array in the offending line makes the bug disappear.

The attachment has the source files and a simple run.sh script.

Tested on MacOS Mojave & DMD v2.089.1

Jan 08 2020