Commit 863cd85a by Alexandre Petit-Bianco Committed by Alexandre Petit-Bianco

parse.y (resolve_qualified_expression_name): Try to resolve as an inner class…

parse.y (resolve_qualified_expression_name): Try to resolve as an inner class access only if `decl' is a TYPE_DECL.

2001-02-13  Alexandre Petit-Bianco  <apbianco@redhat.com>

	* parse.y (resolve_qualified_expression_name): Try to resolve as
	an inner class access only if `decl' is a TYPE_DECL.

(http://gcc.gnu.org/ml/gcc-patches/2001-02/msg00762.html)

From-SVN: r39653
parent ca9a9b12
2001-02-13 Alexandre Petit-Bianco <apbianco@redhat.com>
* parse.y (resolve_qualified_expression_name): Try to resolve as
an inner class access only if `decl' is a TYPE_DECL.
2001-02-13 Alexandre Petit-Bianco <apbianco@cygnus.com> 2001-02-13 Alexandre Petit-Bianco <apbianco@cygnus.com>
* decl.c (classdollar_identifier_node): Initialize. * decl.c (classdollar_identifier_node): Initialize.
......
...@@ -9362,8 +9362,9 @@ resolve_qualified_expression_name (wfl, found_decl, where_found, type_found) ...@@ -9362,8 +9362,9 @@ resolve_qualified_expression_name (wfl, found_decl, where_found, type_found)
field_decl = lookup_field_wrapper (type, field_decl = lookup_field_wrapper (type,
EXPR_WFL_NODE (qual_wfl)); EXPR_WFL_NODE (qual_wfl));
/* Maybe what we're trying to access an inner class. */ /* Maybe what we're trying to access to is an inner
if (!field_decl) class, only if decl is a TYPE_DECL. */
if (!field_decl && TREE_CODE (decl) == TYPE_DECL)
{ {
tree ptr, inner_decl; tree ptr, inner_decl;
......
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