Commit 7efda054 by Bryce McKinlay Committed by Bryce McKinlay

tree.c (decl_type_context): Return NULL_TREE if decl's context is a namespace.

    * tree.c (decl_type_context): Return NULL_TREE if decl's context is a
     namespace.

From-SVN: r53828
parent 397de1ff
2002-05-24 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
* tree.c (decl_type_context): Return NULL_TREE if decl's context is a
namespace.
2002-05-24 Andreas Jaeger <aj@suse.de>
* ggc-page.c (alloc_page): Cast variables of type size_t to
......
......@@ -4212,6 +4212,9 @@ decl_type_context (decl)
while (context)
{
if (TREE_CODE (context) == NAMESPACE_DECL)
return NULL_TREE;
if (TREE_CODE (context) == RECORD_TYPE
|| TREE_CODE (context) == UNION_TYPE
|| TREE_CODE (context) == QUAL_UNION_TYPE)
......
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