aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Kosnik <bkoz@gcc.gnu.org>1998-05-26 19:29:39 +0000
committerBenjamin Kosnik <bkoz@gcc.gnu.org>1998-05-26 19:29:39 +0000
commitdff3e828d1459276e3b42ebcf5a79beb2f50edd2 (patch)
tree5834c52c77c13e8334b6a49a29b9eeb1be1d3fff
parentef75df4210e4515c8eb6549e36183b4bd84e242a (diff)
downloadgcc-dff3e828d1459276e3b42ebcf5a79beb2f50edd2.zip
gcc-dff3e828d1459276e3b42ebcf5a79beb2f50edd2.tar.gz
gcc-dff3e828d1459276e3b42ebcf5a79beb2f50edd2.tar.bz2
decl.c (start_decl): Check for DECL_LANG_SPECIFIC before DECL_USE_TEMPLATE.
� 1998-05-26 Benjamin Kosnik <bkoz@loony.cygnus.com> * decl.c (start_decl): Check for DECL_LANG_SPECIFIC before DECL_USE_TEMPLATE. more QT++ fixes. From-SVN: r20065
-rw-r--r--gcc/cp/decl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c
index 822874e..80849a0 100644
--- a/gcc/cp/decl.c
+++ b/gcc/cp/decl.c
@@ -6214,9 +6214,9 @@ start_decl (declarator, declspecs, initialized, attributes, prefix_attributes)
}
/* cp_finish_decl sets DECL_EXTERNAL if DECL_IN_AGGR_P is set. */
- if (DECL_LANG_SPECIFIC (decl))
- DECL_IN_AGGR_P (decl) = 0;
- if (DECL_USE_TEMPLATE (decl) || CLASSTYPE_USE_TEMPLATE (context))
+ DECL_IN_AGGR_P (decl) = 0;
+ if ((DECL_LANG_SPECIFIC (decl) && DECL_USE_TEMPLATE (decl))
+ || CLASSTYPE_USE_TEMPLATE (context))
SET_DECL_TEMPLATE_SPECIALIZATION (decl);
/* Stupid stupid stupid stupid (jason 7/21/95) */