Define two templates, say P and Q. Instantiate Q:=P() and R:=Q(). (Note multiple use of name Q.) This produces a fatal error (when e.g. entering simulator).
Created attachment 22 [details] Test case
Confirmed. It is in fact not necessary to create two templates: The syntax checker crashes when trying to instantiate a previous instance.
I have backported the parser from the development branch. This fixes the problem.