From-SVN: r153922
This commit is contained in:
Jason Merrill 2009-11-04 18:14:14 -05:00
parent e3503aa8cf
commit be998fb7bc

View File

@ -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;