# OOPS! You've triggered a compiler bug

**URL:** <https://forum.dfinity.org/t/oops-youve-triggered-a-compiler-bug/5931>\
**Category:** Developers\
**Created:** [July 16, 2021, 7:38am UTC](https://forum.dfinity.org/t/oops-youve-triggered-a-compiler-bug/5931 "2021-07-16T07:38:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![avi](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/avi/32/1904_2.png) [@avi](https://forum.dfinity.org/u/avi)\
**Post date:** [July 16, 2021, 7:38am UTC](https://forum.dfinity.org/t/oops-youve-triggered-a-compiler-bug/5931/1 "2021-07-16T07:38:47Z")

</div>

Stderr:  
OOPS! You’ve triggered a compiler bug.  
Please report this Motoko issue at [forum.dfinity.org](http://forum.dfinity.org) with the following details:

Motoko (revision dbxi6sam-c0a5q36z-svy5fggv-xbs7pwar)

Fatal error: exception “Assert\_failure mo\_idl/idl\_to\_mo.ml:106:9”  
Raised at file “mo\_idl/idl\_to\_mo.ml”, line 106, characters 9-21  
Called from file “pipeline/pipeline.ml”, line 345, characters 14-61  
Called from file “lang\_utils/diag.ml”, line 32, characters 27-30  
Called from file “lang\_utils/diag.ml”, line 48, characters 20-25  
Called from file “lang\_utils/diag.ml”, line 32, characters 27-30  
Called from file “lang\_utils/diag.ml”, line 32, characters 27-30  
Called from file “lang\_utils/diag.ml”, line 32, characters 27-30  
Called from file “lang\_utils/diag.ml”, line 32, characters 27-30  
Called from file “lang\_utils/diag.ml”, line 32, characters 27-30  
Called from file “lang\_utils/diag.ml”, line 32, characters 27-30  
Called from file “lang\_utils/diag.ml”, line 32, characters 27-30  
Called from file “lang\_utils/diag.ml”, line 32, characters 27-30  
Called from file “lang\_utils/diag.ml”, line 32, characters 27-30  
Called from file “lang\_utils/diag.ml”, line 32, characters 27-30  
Called from file “lang\_utils/diag.ml”, line 32, characters 27-30  
Called from file “lang\_utils/diag.ml”, line 32, characters 27-30  
Called from file “lang\_utils/diag.ml”, line 32, characters 27-30  
Called from file “lang\_utils/diag.ml”, line 32, characters 27-30  
Called from file “lang\_utils/diag.ml”, line 32, characters 27-30  
Called from file “lang\_utils/diag.ml”, line 32, characters 27-30  
Called from file “lang\_utils/diag.ml”, line 32, characters 27-30  
Called from file “lang\_utils/diag.ml”, line 32, characters 27-30  
Called from file “lang\_utils/diag.ml”, line 32, characters 27-30  
Called from file “pipeline/pipeline.ml” (inlined), line 356, characters 20-42  
Called from file “pipeline/pipeline.ml”, line 358, characters 47-63  
Called from file “pipeline/pipeline.ml”, line 366, characters 21-52  
Called from file “lang\_utils/diag.ml”, line 32, characters 27-30  
Called from file “lang\_utils/diag.ml”, line 32, characters 27-30  
Called from file “pipeline/pipeline.ml”, line 446, characters 27-71  
Called from file “exes/moc.ml”, line 136, characters 24-53  
Called from file “exes/moc.ml”, line 205, characters 4-23

---

<div class="post-metadata">

**Author:** ![claudio](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/claudio/32/322_2.png) [@claudio](https://forum.dfinity.org/u/claudio)\
**Post date:** [July 16, 2021, 9:23am UTC](https://forum.dfinity.org/t/oops-youve-triggered-a-compiler-bug/5931/2 "2021-07-16T09:23:01Z")

</div>

Thanks for the bug report!

This smells like a duplicate of

> [@Build Error with imported Actor Class](https://forum.dfinity.org/t/build-error-with-imported-actor-class/1931):
>
> The following import pattern doesn’t seem to work. I can’t quite figure out why. My hope here was to deploy the canisters and have access to the initializer object so I know who the “owner” is. //usernamesBucket.mo shared({ caller = initializer }) actor class() { }; //main.mo import Usernames "canister:usernamesBucket"; shared({ caller = initializer }) actor class() { public query func greet() : async Text { return "Hello world"; }; }; //dfx.json { "canisters": { …

This should be fixed in the next release of dfx (0.7.7 or higher)

Can you report which version of dfx you are using?

---

<div class="post-metadata">

**Author:** ![avi](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/avi/32/1904_2.png) [@avi](https://forum.dfinity.org/u/avi)\
**Post date:** [July 16, 2021, 1:32pm UTC](https://forum.dfinity.org/t/oops-youve-triggered-a-compiler-bug/5931/3 "2021-07-16T13:32:19Z")

</div>

use version is 0.7.2
