c++: Fix bootstrap failure. [PR97118]
gcc/cp/ChangeLog: PR bootstrap/97118 * decl.c (complete_vars): Only call layout_var_decl if completing the type succeeded.
This commit is contained in:
parent
04dc198ce5
commit
e1a1808cd1
1 changed files with 2 additions and 1 deletions
|
@ -17463,7 +17463,8 @@ complete_vars (tree type)
|
|||
/* Complete the type of the variable. */
|
||||
complete_type (type);
|
||||
cp_apply_type_quals_to_decl (cp_type_quals (type), var);
|
||||
layout_var_decl (var);
|
||||
if (COMPLETE_TYPE_P (type))
|
||||
layout_var_decl (var);
|
||||
}
|
||||
|
||||
/* Remove this entry from the list. */
|
||||
|
|
Loading…
Add table
Reference in a new issue