* pt.c (tsubst): Clear TYPE_REFERENCE_TO when creating a
reduced-level template type parameter.
From-SVN: r18472
+Wed Mar 11 07:31:08 1998 Mark Mitchell <mmitchell@usa.net>
+
+ * pt.c (tsubst): Clear TYPE_REFERENCE_TO when creating a
+ reduced-level template type parameter.
+
Wed Mar 11 07:25:20 1998 Mark Mitchell <mmitchell@usa.net>
* parse.y (new_initializer): Make sure all initializers are
--- /dev/null
+// Build don't link:
+
+template<class P> struct B
+{
+ template<class T> void f(T& t) { t = T(); }
+};
+
+enum ptype { t1, t2};
+
+struct D : public B<ptype>
+{
+ void g(double& d) { f(d); }
+};
+
+
+D d;
+