aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/cp-objcp-common.h
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2006-09-11 00:40:15 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2006-09-11 00:40:15 +0000
commitbc70af526c6b2243c68242d0aa6a48da9da4003d (patch)
tree638e093b62285063b24863274ca086abe9301c4b /gcc/cp/cp-objcp-common.h
parentd35763beeab40ff256e819535bc6cc8eda90e6ce (diff)
downloadgcc-bc70af526c6b2243c68242d0aa6a48da9da4003d.zip
gcc-bc70af526c6b2243c68242d0aa6a48da9da4003d.tar.gz
gcc-bc70af526c6b2243c68242d0aa6a48da9da4003d.tar.bz2
re PR c++/28991 (Static constructor emitted instead of initialized variable)
PR c++/28991 * cp-objcp-common.c (cxx_staticp): New function. * cp-objcp-common.h (LANG_HOOOKS_STATICP): Use it. * cp-tree.h (cxx_staticp): New function. PR c++/289991 * g++.dg/init/static3.C: New test. From-SVN: r116838
Diffstat (limited to 'gcc/cp/cp-objcp-common.h')
-rw-r--r--gcc/cp/cp-objcp-common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/cp/cp-objcp-common.h b/gcc/cp/cp-objcp-common.h
index 65eb6ae..f420d93 100644
--- a/gcc/cp/cp-objcp-common.h
+++ b/gcc/cp/cp-objcp-common.h
@@ -59,6 +59,8 @@ extern tree objcp_tsubst_copy_and_build (tree, tree, tsubst_flags_t,
#define LANG_HOOKS_EXPAND_DECL c_expand_decl
#undef LANG_HOOKS_PARSE_FILE
#define LANG_HOOKS_PARSE_FILE c_common_parse_file
+#undef LANG_HOOKS_STATICP
+#define LANG_HOOKS_STATICP cxx_staticp
#undef LANG_HOOKS_DUP_LANG_SPECIFIC_DECL
#define LANG_HOOKS_DUP_LANG_SPECIFIC_DECL cxx_dup_lang_specific_decl
#undef LANG_HOOKS_SET_DECL_ASSEMBLER_NAME