aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/decl2.c
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@codesourcery.com>2001-05-03 11:02:26 +0000
committerNathan Sidwell <nathan@gcc.gnu.org>2001-05-03 11:02:26 +0000
commit5158d7eeb777a402440950ee9f3a5ce69586e791 (patch)
tree3af1413c9396f239f12eefc0b036c81205755a9c /gcc/cp/decl2.c
parent05de394bf942c4d6d88b0881ebd61386247a3d5d (diff)
downloadgcc-5158d7eeb777a402440950ee9f3a5ce69586e791.zip
gcc-5158d7eeb777a402440950ee9f3a5ce69586e791.tar.gz
gcc-5158d7eeb777a402440950ee9f3a5ce69586e791.tar.bz2
dump.c (cp_dump_tree, [...]): New case.
* dump.c (cp_dump_tree, USING_STMT case): New case. * tree.c (cp_statement_code_p): Add USING_STMT. * decl2.c (do_using_directive): Add the using directive statement. * tree.c (walk_tree): Reformat an if block. From-SVN: r41783
Diffstat (limited to 'gcc/cp/decl2.c')
-rw-r--r--gcc/cp/decl2.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c
index 9010092..768fd5f 100644
--- a/gcc/cp/decl2.c
+++ b/gcc/cp/decl2.c
@@ -5204,6 +5204,8 @@ do_using_directive (namespace)
{
if (namespace == fake_std_node)
return;
+ if (building_stmt_tree ())
+ add_stmt (build_stmt (USING_STMT, namespace));
/* using namespace A::B::C; */
if (TREE_CODE (namespace) == SCOPE_REF)