Index: tests/bugs/196.cfa
===================================================================
--- tests/bugs/196.cfa	(revision 9dc3eb21aaa56f0f92f0c321820e671a30ea502f)
+++ tests/bugs/196.cfa	(revision 9dc3eb21aaa56f0f92f0c321820e671a30ea502f)
@@ -0,0 +1,29 @@
+// Trac ticket
+// https://cforall.uwaterloo.ca/trac/ticket/196
+
+forall(dtype T)
+struct link;
+
+forall(dtype T)
+struct link {
+	link(T) * next;
+};
+
+// -----
+
+forall(dtype T)
+struct foo;
+
+forall(dtype U)
+struct bar {
+	foo(U) * data;
+};
+
+forall(dtype T)
+struct foo {};
+
+// -----
+
+int main(int argc, char * argv[]) {
+	return 0;
+}
