Commit d06a312a by Jason Merrill Committed by Jason Merrill

pt.c (check_explicit_specialization): Don't test DECL_DECLARED_INLINE_P for a variable template.

	* 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
parent 3b024f23
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
......
......@@ -2817,9 +2817,11 @@ check_explicit_specialization (tree declarator,
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. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment