pt.c (for_each_template_parm): Traverse the TYPE_CONTEXT for types.

* pt.c (for_each_template_parm): Traverse the TYPE_CONTEXT for
	types.

From-SVN: r20498
This commit is contained in:
Mark Mitchell 1998-06-13 23:35:46 +00:00
parent 5e7955289f
commit 581d38d0ba
2 changed files with 21 additions and 0 deletions

View File

@ -3164,6 +3164,11 @@ for_each_template_parm (t, fn, data)
{
if (!t)
return 0;
if (TREE_CODE_CLASS (TREE_CODE (t)) == 't'
&& for_each_template_parm (TYPE_CONTEXT (t), fn, data))
return 1;
switch (TREE_CODE (t))
{
case INDIRECT_REF:

View File

@ -0,0 +1,16 @@
// Build don't link:
template <class T>
struct U
{
T mT;
};
template <class H>
struct M
{
enum FLAG {On, Off};
U<FLAG> mUF;
};
M<char> gm;