From: Jason Merrill Date: Thu, 21 Sep 2000 21:47:55 +0000 (-0400) Subject: * decl2.c (get_guard): Check DECL_FUNCTION_SCOPE_P. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=99fada40ffa1fb0b899e7a636a993006165b8803;p=gcc.git * decl2.c (get_guard): Check DECL_FUNCTION_SCOPE_P. From-SVN: r36566 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 222b0158f8d..c56941336d8 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +2000-09-20 Jason Merrill + + * decl2.c (get_guard): Check DECL_FUNCTION_SCOPE_P. + 2000-09-21 Andreas Jaeger * errfn.c: Move declaration of cp_printer and cp_printers to ... diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c index a530c3284ee..a9dc4132fa3 100644 --- a/gcc/cp/decl2.c +++ b/gcc/cp/decl2.c @@ -2868,7 +2868,7 @@ get_guard (decl) /* For a local variable, under the old ABI, we do not try to get a unique mangled name for the DECL. */ - if (!flag_new_abi && !DECL_NAMESPACE_SCOPE_P (decl)) + if (!flag_new_abi && DECL_FUNCTION_SCOPE_P (decl)) { guard = get_temp_name (integer_type_node); cp_finish_decl (guard, NULL_TREE, NULL_TREE, 0);