Consider the following minimal example:
\documentclass{article}
\usepackage{unicode-math}
\newcommand{\dotcup}{\ensuremath{\mathaccent\cdot\cup}}
\begin{document}
$a \dotcup b$
\end{document}
If compiled with lualatex I get the following error
This is LuaTeX, Version 0.95.0 (TeX Live 2016)
restricted system commands enabled.
(./min.tex
LaTeX2e <2016/03/31> patch level 2
Babel <3.9r> and hyphenation patterns for 1 language(s) loaded.
(/usr/local/texlive/2016/texmf-dist/tex/latex/base/article.cls
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
...
! Missing number, treated as zero.
<to be read again>
\cdot
l.8 $a \dotcup
b$
...
On the other hand if I compile the example without unicode-math but with pdflatex, then I get the desired PDF file. Is this a bug in unicode-math or lualatex?
Edit:
The command \dotcup is given as an example in the file symbols-a4.pdf where it serves as an example in order to center two symbols over each other. In the end, I am not interested in that particular symbol but in a composition of two other symbols where I receive the same error. That means, it served me as a general example in order to determine if this is a bug or intended behavior.


\dot\cup? – Ulrike Fischer Jul 13 '16 at 08:10