* pt.c (lookup_template_class_1): Don't share TYPE_ATTRIBUTES
between template and instantiation.
From-SVN: r233017
+2016-01-31 Jason Merrill <jason@redhat.com>
+
+ * pt.c (lookup_template_class_1): Don't share TYPE_ATTRIBUTES
+ between template and instantiation.
+
2016-01-29 Jakub Jelinek <jakub@redhat.com>
PR debug/66869
tree attributes
= lookup_attribute (tags[ix], TYPE_ATTRIBUTES (template_type));
- if (!attributes)
- ;
- else if (!TREE_CHAIN (attributes) && !TYPE_ATTRIBUTES (t))
- TYPE_ATTRIBUTES (t) = attributes;
- else
+ if (attributes)
TYPE_ATTRIBUTES (t)
= tree_cons (TREE_PURPOSE (attributes),
TREE_VALUE (attributes),
--- /dev/null
+// { dg-final { scan-assembler "_Z3fi1B6_X_tagv" } }
+
+struct __attribute((abi_tag("_A1_tag"))) A1 {};
+template <class T> struct __attribute((abi_tag("_X_tag"))) X {};
+X<int> fi1();
+int main() {
+ X<A1> xa;
+ fi1();
+}