Commit 3a19bc1c by Brendan Kehoe Committed by Brendan Kehoe

search.c (lookup_field): Return a NULL_TREE if XBASETYPE is itself null.

        * search.c (lookup_field): Return a NULL_TREE if XBASETYPE is
        itself null.

From-SVN: r8143
parent dab0a79e
Tue Sep 27 10:18:57 1994 Brendan Kehoe (brendan@lisa.cygnus.com)
* search.c (lookup_field): Return a NULL_TREE if XBASETYPE is
itself null.
Wed Sep 14 10:17:27 1994 Michael I Bushnell <mib@churchy.gnu.ai.mit.edu> Wed Sep 14 10:17:27 1994 Michael I Bushnell <mib@churchy.gnu.ai.mit.edu>
* g++.c: Include <sys/errno.h> in case `errno' is a macro * g++.c: Include <sys/errno.h> in case `errno' is a macro
......
...@@ -1031,6 +1031,10 @@ lookup_field (xbasetype, name, protect, want_type) ...@@ -1031,6 +1031,10 @@ lookup_field (xbasetype, name, protect, want_type)
accurate error messages for access control. */ accurate error messages for access control. */
int index = MEMOIZED_HASH_FN (name); int index = MEMOIZED_HASH_FN (name);
/* We sometimes go looking with XBASETYPE pre-set to null. */
if (xbasetype == NULL_TREE)
return NULL_TREE;
/* If we are looking for a constructor in a templated type, use the /* If we are looking for a constructor in a templated type, use the
unspecialized name, as that is how we store it. */ unspecialized name, as that is how we store it. */
if (IDENTIFIER_TEMPLATE (name)) if (IDENTIFIER_TEMPLATE (name))
......
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