OOPS! You've triggered a compiler bug

Thanks for the bug report!

This smells like a duplicate of

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?