mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-31 15:11:04 +08:00
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:
parent
070d3be364
commit
283badc2c6
@ -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
|
||||
|
17
gcc/testsuite/g++.old-deja/g++.pt/memtemp72.C
Normal file
17
gcc/testsuite/g++.old-deja/g++.pt/memtemp72.C
Normal 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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user