Commit a5778545 by Tom Tromey Committed by Tom Tromey

parse.y (build_access_to_thisn): Stop when FROM is not an inner class.

	* parse.y (build_access_to_thisn): Stop when FROM is not an inner
	class.

From-SVN: r51138
parent 43577e6b
2002-03-21 Tom Tromey <tromey@redhat.com>
* parse.y (build_access_to_thisn): Stop when FROM is not an inner
class.
2002-03-21 Neil Booth <neil@daikokuya.demon.co.uk>
* cp-tree.h (pushdecl, pushlevel, poplevel, set_block,
......
......@@ -8548,7 +8548,7 @@ build_access_to_thisn (from, to, lc)
{
tree access = NULL_TREE;
while (from != to)
while (from != to && PURE_INNER_CLASS_TYPE_P (from))
{
if (!access)
{
......@@ -8568,8 +8568,8 @@ build_access_to_thisn (from, to, lc)
access = make_qualified_primary (cn, access, lc);
}
/* if FROM isn't an inter class, that's fine, we've done
enough. What we're looking for can be accessed from there. */
/* If FROM isn't an inner class, that's fine, we've done enough.
What we're looking for can be accessed from there. */
from = DECL_CONTEXT (TYPE_NAME (from));
if (!from)
break;
......
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