Commit 581d38d0 by Mark Mitchell

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
parent 5e795528
......@@ -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:
......
// 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;
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