Index: tests/bugs/196.cfa
===================================================================
--- tests/bugs/196.cfa	(revision 08e88514b1a5b79ea52c8bcb7e26e07cb0e75567)
+++ tests/bugs/196.cfa	(revision 08e88514b1a5b79ea52c8bcb7e26e07cb0e75567)
@@ -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;
+}
