# Cleveref not working with compress in newest version

After updating my cleveref package to the newest version, ver. 0.21, I suddenly get an "Undefined control sequence"-error, when the compress option is enabled.

Minimal NOT working example:

\documentclass{memoir}

\usepackage[compress]{cleveref}

\begin{document}
\cref{eqn}
\end{document}


Minimal working example:

\documentclass{memoir}

\usepackage{cleveref}

\begin{document}
\cref{eqn}
\end{document}


I can see that something has changed with compress in the newest version of cleveref, but I cannot figure, why my code does not compile. I have also tried with documentclass article, but I obtain the same error.

From log file:

(c:/texlive/2017/texmf-dist/tex/latex/cleveref/cleveref.sty
Package: cleveref 2017/07/10 v0.21 Intelligent cross-referencing
LaTeX Info: Redefining \Cref on input line 904.
Package cleveref Info: compressing but not sorting references on input line 777
8.
) (./test.aux)
\openout1 = test.aux'.


...

! Undefined control sequence.
\cref@processgroup ...ref \cref@isrefsametypetrue
\@whilesw \if@cref@sametyp...
l.10 \cref{eqn}

The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., \hobx'), type I' and the correct
spelling (e.g., I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

• Looks like a bug in the latest version of cleveref. Let's give Toby Cubitt (the creator and maintainer of the package) a day or two to issue an update with bug fixes. – Mico Feb 7 '18 at 21:09
• @Mico That is assuming he already knows about the problem. So maybe the problems should also be reported properly. – moewe Feb 7 '18 at 21:12
• @moewe - Toby is a member of this site. I trust he's set up to get email notifications of postings that contain the cleveref tag. :-) – Mico Feb 7 '18 at 21:15
• I sent Toby a bug report yesterday, he is aware of the problem. – Simifilm Feb 8 '18 at 4:38
• I bugfix is due soon. – Simifilm Feb 8 '18 at 17:55