Commit 283badc2 by Mark Mitchell Committed by Mark Mitchell

pt.c (tsubst): Clear TYPE_REFERENCE_TO when creating a reduced-level template type parameter.

	* pt.c (tsubst): Clear TYPE_REFERENCE_TO when creating a
        reduced-level template type parameter.

From-SVN: r18472
parent 070d3be3
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> Wed Mar 11 07:25:20 1998 Mark Mitchell <mmitchell@usa.net>
* parse.y (new_initializer): Make sure all initializers are * parse.y (new_initializer): Make sure all initializers are
......
// 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;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment