https://bugs.gentoo.org/536490
https://bugs.gentoo.org/547026

--- Emacs-D-Mode-2.0.6-orig/d-mode.el
+++ Emacs-D-Mode-2.0.6/d-mode.el
@@ -66,6 +66,7 @@
 ;; necessary to get them compiled.)
 ;; Coment out 'when-compile part for debugging
 (eval-when-compile
+  (require 'cl)
   (require 'cc-langs)
   (require 'cc-fonts)
 )
