summaryrefslogtreecommitdiff
path: root/gcc/cp/mangle.c
diff options
context:
space:
mode:
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>2014-11-14 12:02:09 +0000
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>2014-11-14 12:02:09 +0000
commit776bb2212abaa85161a57119db98549ab25e33a6 (patch)
tree017766ed4bebcfb5b1632f1dc6e0ffea4be42f68 /gcc/cp/mangle.c
parent1043013c91c08e3d8cd665b3f960f658918d69fe (diff)
downloadgcc-776bb2212abaa85161a57119db98549ab25e33a6.tar.gz
gcc/cp:
* mangle.c (find_substitution): Look for abi_tag on class templates. gcc/testsuite: * g++.dg/abi/abi-tag11.C: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@217557 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/mangle.c')
-rw-r--r--gcc/cp/mangle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/mangle.c b/gcc/cp/mangle.c
index 048c957519b..576ad1d1978 100644
--- a/gcc/cp/mangle.c
+++ b/gcc/cp/mangle.c
@@ -609,7 +609,7 @@ find_substitution (tree node)
}
tree tags = NULL_TREE;
- if (OVERLOAD_TYPE_P (node))
+ if (OVERLOAD_TYPE_P (node) || DECL_CLASS_TEMPLATE_P (node))
tags = lookup_attribute ("abi_tag", TYPE_ATTRIBUTES (type));
/* Now check the list of available substitutions for this mangling
operation. */