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:
parent
3b2d8145a4
commit
8be20b9e0d
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue