c++: Module ICE fix

A missing check for decl lang specific has made itself apparent.

	gcc/cp/
	* module.cc (has_definition): Check DECL_LANG_SPECIFIC.
This commit is contained in:
Nathan Sidwell 2020-12-22 12:39:58 -08:00
parent 3b2d8145a4
commit 8be20b9e0d

View file

@ -11374,7 +11374,8 @@ has_definition (tree decl)
break;
case VAR_DECL:
if (DECL_TEMPLATE_INFO (decl)
if (DECL_LANG_SPECIFIC (decl)
&& DECL_TEMPLATE_INFO (decl)
&& DECL_USE_TEMPLATE (decl) < 2)
return DECL_INITIAL (decl);
else