PR ipa/61659
* decl.c (duplicate_decls): Check DECL_DECLARED_INLINE_P on
newdecl, not olddecl.
From-SVN: r214900
+2014-09-04 Markus Trippelsdorf <markus@trippelsdorf.de>
+
+ PR ipa/61659
+ * decl.c (duplicate_decls): Check DECL_DECLARED_INLINE_P on
+ newdecl, not olddecl.
+
2014-09-02 Paolo Carlini <paolo.carlini@oracle.com>
DR 1453
olddecl);
SET_DECL_TEMPLATE_SPECIALIZATION (olddecl);
- DECL_COMDAT (newdecl) = DECL_DECLARED_INLINE_P (olddecl);
+ DECL_COMDAT (newdecl) = DECL_DECLARED_INLINE_P (newdecl);
/* Don't propagate visibility from the template to the
specialization here. We'll do that in determine_visibility if
--- /dev/null
+// PR ipa/61659
+
+// { dg-final { scan-assembler "_Z1fIiEvPT_" } }
+
+template <typename T> inline void f (T *);
+template <> void f (int *) { }