|
Lines 2185-2190
duplicate_decls (tree newdecl, tree olddecl, bool newdecl_is_friend)
Link Here
|
| 2185 |
olddecl); |
2185 |
olddecl); |
| 2186 |
|
2186 |
|
| 2187 |
SET_DECL_TEMPLATE_SPECIALIZATION (olddecl); |
2187 |
SET_DECL_TEMPLATE_SPECIALIZATION (olddecl); |
|
|
2188 |
DECL_COMDAT (newdecl) = DECL_DECLARED_INLINE_P (newdecl); |
| 2188 |
|
2189 |
|
| 2189 |
/* Don't propagate visibility from the template to the |
2190 |
/* Don't propagate visibility from the template to the |
| 2190 |
specialization here. We'll do that in determine_visibility if |
2191 |
specialization here. We'll do that in determine_visibility if |
|
Lines 4638-4643
start_decl (const cp_declarator *declarator,
Link Here
|
| 4638 |
if (DECL_LANG_SPECIFIC (decl) && DECL_USE_TEMPLATE (decl)) |
4639 |
if (DECL_LANG_SPECIFIC (decl) && DECL_USE_TEMPLATE (decl)) |
| 4639 |
{ |
4640 |
{ |
| 4640 |
SET_DECL_TEMPLATE_SPECIALIZATION (decl); |
4641 |
SET_DECL_TEMPLATE_SPECIALIZATION (decl); |
|
|
4642 |
if (TREE_CODE (decl) == FUNCTION_DECL) |
| 4643 |
DECL_COMDAT (decl) = DECL_DECLARED_INLINE_P (decl); |
| 4641 |
|
4644 |
|
| 4642 |
/* [temp.expl.spec] An explicit specialization of a static data |
4645 |
/* [temp.expl.spec] An explicit specialization of a static data |
| 4643 |
member of a template is a definition if the declaration |
4646 |
member of a template is a definition if the declaration |
|
Lines 7602-7608
grokfndecl (tree ctype,
Link Here
|
| 7602 |
|
7605 |
|
| 7603 |
/* If the declaration was declared inline, mark it as such. */ |
7606 |
/* If the declaration was declared inline, mark it as such. */ |
| 7604 |
if (inlinep) |
7607 |
if (inlinep) |
| 7605 |
DECL_DECLARED_INLINE_P (decl) = 1; |
7608 |
{ |
|
|
7609 |
DECL_DECLARED_INLINE_P (decl) = 1; |
| 7610 |
DECL_COMDAT (decl) = 1; |
| 7611 |
} |
| 7606 |
if (inlinep & 2) |
7612 |
if (inlinep & 2) |
| 7607 |
DECL_DECLARED_CONSTEXPR_P (decl) = true; |
7613 |
DECL_DECLARED_CONSTEXPR_P (decl) = true; |
| 7608 |
|
7614 |
|
|
Lines 14147-14152
grokmethod (cp_decl_specifier_seq *declspecs,
Link Here
|
| 14147 |
|
14153 |
|
| 14148 |
check_template_shadow (fndecl); |
14154 |
check_template_shadow (fndecl); |
| 14149 |
|
14155 |
|
|
|
14156 |
DECL_COMDAT (fndecl) = 1; |
| 14150 |
DECL_DECLARED_INLINE_P (fndecl) = 1; |
14157 |
DECL_DECLARED_INLINE_P (fndecl) = 1; |
| 14151 |
DECL_NO_INLINE_WARNING_P (fndecl) = 1; |
14158 |
DECL_NO_INLINE_WARNING_P (fndecl) = 1; |
| 14152 |
|
14159 |
|