This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Patch for regression PR c++/28432


Mark Mitchell Wrote:
> Steve Ellcey wrote:
> 
> > +      if (!IS_AGGR_TYPE_CODE (TREE_CODE (xbasetype)))
> > +	return NULL_TREE;
> 
> Please use "!CLASS_TYPE_P (xbasetype)".  That will cause the condition
> to be false for pointers to member functions as well, which makes sense;
> we should never be doing lookup on a pointer to member function.
> However, it's just possible that we *are* doing that, out of laziness,
> so if the patch fails any tests with that change, go with your version
> instead.
> 
> Patch OK with that change, or, as above, without if necessary.

FYI:  Using !CLASS_TYPE_P did cause quite a few testsuite failures so I
will check this in as I originally submitted it.

Steve Ellcey
sje@cup.hp.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]