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
This commit is contained in:
Mark Mitchell 1998-03-11 07:37:49 +00:00 committed by Mark Mitchell
parent 070d3be364
commit 283badc2c6
2 changed files with 22 additions and 0 deletions

View File

@ -1,3 +1,8 @@
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

View File

@ -0,0 +1,17 @@
// 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;