aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/decl2.c
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@codesourcery.com>2001-05-24 12:00:52 +0000
committerNathan Sidwell <nathan@gcc.gnu.org>2001-05-24 12:00:52 +0000
commit6f56d9253f78d537e2af74895512188743519ff7 (patch)
tree42a9ab80111c2cda4ddfaf72596e9b69a1a0fedc /gcc/cp/decl2.c
parent8948cb39720f8843baf5db391eceef189ddf7ec3 (diff)
downloadgcc-6f56d9253f78d537e2af74895512188743519ff7.zip
gcc-6f56d9253f78d537e2af74895512188743519ff7.tar.gz
gcc-6f56d9253f78d537e2af74895512188743519ff7.tar.bz2
re PR c++/2184 (using declarations for classes in function templates)
cp: PR c++/2184 * decl2.c (do_local_using_decl): Push the decls, even in a template. testsuite: * g++.old-deja/g++.pt/using1.C: Adjust. * g++.old-deja/g++.pt/using2.C: New test. From-SVN: r42526
Diffstat (limited to 'gcc/cp/decl2.c')
-rw-r--r--gcc/cp/decl2.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c
index ba98dc5..0245bc0 100644
--- a/gcc/cp/decl2.c
+++ b/gcc/cp/decl2.c
@@ -5136,8 +5136,6 @@ do_local_using_decl (decl)
if (building_stmt_tree ()
&& at_function_scope_p ())
add_decl_stmt (decl);
- if (processing_template_decl)
- return;
oldval = lookup_name_current_level (name);
oldtype = lookup_type_current_level (name);