* pt.c (check_explicit_specialization): Don't test
DECL_DECLARED_INLINE_P for a variable template.
Co-Authored-By: Braden Obrzut <admin@maniacsvault.net>
From-SVN: r213687
+2014-08-06 Jason Merrill <jason@redhat.com>
+ Braden Obrzut <admin@maniacsvault.net>
+
+ * pt.c (check_explicit_specialization): Don't test
+ DECL_DECLARED_INLINE_P for a variable template.
+
2014-08-06 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/43906
It's just the name of an instantiation. But, it's not
a request for an instantiation, either. */
SET_DECL_IMPLICIT_INSTANTIATION (decl);
- else
+ else if (TREE_CODE (decl) == FUNCTION_DECL)
/* A specialization is not necessarily COMDAT. */
DECL_COMDAT (decl) = DECL_DECLARED_INLINE_P (decl);
+ else if (TREE_CODE (decl) == VAR_DECL)
+ DECL_COMDAT (decl) = false;
/* Register this specialization so that we can find it
again. */