diff options
author | Mark Mitchell <mark@codesourcery.com> | 2005-01-31 16:16:16 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2005-01-31 16:16:16 +0000 |
commit | 4e8f0a2e12493d52dd8009a8921496fce9a5ae63 (patch) | |
tree | c838ee2c3ccad1687b1a5ea3227b81cf070e5dbc /gcc/cp | |
parent | a7a52913cf19685b6b0e9cbc61015e41ec2f82b1 (diff) | |
download | gcc-4e8f0a2e12493d52dd8009a8921496fce9a5ae63.zip gcc-4e8f0a2e12493d52dd8009a8921496fce9a5ae63.tar.gz gcc-4e8f0a2e12493d52dd8009a8921496fce9a5ae63.tar.bz2 |
* decl.c (start_decl): Add missing parentheses.
From-SVN: r94483
Diffstat (limited to 'gcc/cp')
-rw-r--r-- | gcc/cp/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/cp/decl.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index e205886..d0ccb13 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +2005-01-31 Mark Mitchell <mark@codesourcery.com> + + * decl.c (start_decl): Add missing parentheses. + 2005-01-30 Mark Mitchell <mark@codesourcery.com> PR c++/19555 diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index e72b183..964feaa 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -3702,7 +3702,7 @@ start_decl (const cp_declarator *declarator, /* cp_finish_decl sets DECL_EXTERNAL if DECL_IN_AGGR_P is set. */ DECL_IN_AGGR_P (decl) = 0; - if (DECL_LANG_SPECIFIC (decl) && DECL_USE_TEMPLATE (decl) + if ((DECL_LANG_SPECIFIC (decl) && DECL_USE_TEMPLATE (decl)) || CLASSTYPE_TEMPLATE_INSTANTIATION (context)) { /* Do not mark DECL as an explicit specialization if it was |