[Issue 20488] New: Strange opDispatch error with multiple module compilation and the use of hashmaps

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jan 8 09:09:08 UTC 2020


https://issues.dlang.org/show_bug.cgi?id=20488

          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 at puremagic.com
          Reporter: andrej.mitrovich at 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

--


More information about the Digitalmars-d-bugs mailing list