mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-21 15:41:09 +08:00
fix
From-SVN: r153922
This commit is contained in:
parent
e3503aa8cf
commit
be998fb7bc
@ -218,7 +218,8 @@ lookup_base (tree t, tree base, base_access access, base_kind *kind_ptr)
|
||||
|
||||
/* If BASE is incomplete, it can't be a base of T--and instantiating it
|
||||
might cause an error. */
|
||||
if (t_binfo && (COMPLETE_TYPE_P (base) || TYPE_BEING_DEFINED (base)))
|
||||
if (t_binfo && CLASS_TYPE_P (base)
|
||||
&& (COMPLETE_TYPE_P (base) || TYPE_BEING_DEFINED (base)))
|
||||
{
|
||||
struct lookup_base_data_s data;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user