diff options
Diffstat (limited to 'gcc/cp/lex.c')
-rw-r--r-- | gcc/cp/lex.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/gcc/cp/lex.c b/gcc/cp/lex.c index c9422696f4b..1daa1fc6ec9 100644 --- a/gcc/cp/lex.c +++ b/gcc/cp/lex.c @@ -779,6 +779,8 @@ cxx_make_type (enum tree_code code) presence of parse errors, the normal was of assuring this might not ever get executed, so we lay it out *immediately*. */ build_pointer_type (t); + + TYPE_BINFO (t) = make_binfo (size_zero_node, t, NULL_TREE, NULL_TREE); } else /* We use TYPE_ALIAS_SET for the CLASSTYPE_MARKED bits. But, @@ -786,15 +788,6 @@ cxx_make_type (enum tree_code code) clear it here. */ TYPE_ALIAS_SET (t) = 0; - /* We need to allocate a TYPE_BINFO even for TEMPLATE_TYPE_PARMs - since they can be virtual base types, and we then need a - canonical binfo for them. Ideally, this would be done lazily for - all types. */ - if (IS_AGGR_TYPE_CODE (code) || code == TEMPLATE_TYPE_PARM - || code == BOUND_TEMPLATE_TEMPLATE_PARM - || code == TYPENAME_TYPE) - TYPE_BINFO (t) = make_binfo (size_zero_node, t, NULL_TREE, NULL_TREE); - return t; } |