diff options
author | Alexandre Oliva <aoliva@redhat.com> | 2007-02-15 04:19:33 +0000 |
---|---|---|
committer | Alexandre Oliva <aoliva@gcc.gnu.org> | 2007-02-15 04:19:33 +0000 |
commit | db9e0d2af65c2caafd568536b3613e7e729ab006 (patch) | |
tree | 8033203ffbf059b35b6d05a1dfa5a9d51a41693f /gcc/dwarf2out.c | |
parent | 5ad17e7d5ae0ce60235583e542fbe958812c3310 (diff) | |
download | gcc-db9e0d2af65c2caafd568536b3613e7e729ab006.zip gcc-db9e0d2af65c2caafd568536b3613e7e729ab006.tar.gz gcc-db9e0d2af65c2caafd568536b3613e7e729ab006.tar.bz2 |
dwarf2out.c (dwarf2out_finish): Accept namespaces as context of limbo die nodes.
gcc/ChangeLog:
* dwarf2out.c (dwarf2out_finish): Accept namespaces as context of
limbo die nodes.
gcc/testsuite/ChangeLog:
* g++.dg/ext/interface4.C, g++.dg/ext/interface4.h: New.
From-SVN: r121979
Diffstat (limited to 'gcc/dwarf2out.c')
-rw-r--r-- | gcc/dwarf2out.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 92e14e5..901fbff 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -14375,7 +14375,9 @@ dwarf2out_finish (const char *filename) else if (TYPE_P (node->created_for)) context = TYPE_CONTEXT (node->created_for); - gcc_assert (context && TREE_CODE (context) == FUNCTION_DECL); + gcc_assert (context + && (TREE_CODE (context) == FUNCTION_DECL + || TREE_CODE (context) == NAMESPACE_DECL)); origin = lookup_decl_die (context); if (origin) |