For me (using pdflatex: pdfTeX 3.14159265-2.6-1.40.17 (TeX Live 2016)) the following code compiles fine, but if I uncomment the second loop it fails to compile with a "Giving up on this path..." error message. Am I doing something stupid?
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\path coordinate (P) at (7,10);
\end{tikzpicture}
\begin{tikzpicture}
\foreach \position [count=\posi] in {(0,0), (3,0), (4,1), (5,2), (4,4), (2,5), (1,3)}
\path \position coordinate (P\posi);
\end{tikzpicture}
% \begin{tikzpicture}
% \foreach \position [count=\posi] in {(0,0), (3,0), (4,1), (5,2), (4,4), (2,5), (1,3)}
% \path coordinate (P\posi) at \position;
% \end{tikzpicture}
\end{document}
\path coordinate (P) at (7,10);at the very beginning of the code. – Jun 19 '18 at 19:49