If I try to compile this,
\documentclass[a4paper,12pt]{article}
\usepackage{tikz}
\usetikzlibrary{shapes}
\begin{document}
\begin{tikzpicture}
\node [rectangle, % <-- there's a syntax error
\node [rectangle] (a) {};
\end{tikzpicture}
\end{document}
compilation never stops. Is this a bug in TikZ/PGF?
I use this version of latex:
pdfTeX 3.1415926-2.3-1.40.12 (TeX Live 2012/dev/Debian)
\documentclass{article}\usepackage{tikz}\begin{document}\tikz\node [\node] (a) {};\end{document}and it will show the same behavior. The reason seems to be the search for the path to apply the second node code however the second bracket completes the options declaration and the error-check cannot understand the nature of the problem while searching for the path. – percusse Apr 5 '12 at 22:58