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: [PATH] fix c/10962, slow lookup_field


On Thu, 29 May 2003 20:14:59 -0400, Andrew Pinski <pinskia@physics.uc.edu> wrote:

> I wish it could very easy but since in the c++, it depends on this macros
> that only in C++ front-end:
>
> /* Nonzero if NODE which declares a type.  */
> #define DECL_DECLARES_TYPE_P(NODE) \
>    (TREE_CODE (NODE) == TYPE_DECL || DECL_CLASS_TEMPLATE_P (NODE))

You should be able to replace the use of that macro with just the TYPE_DECL
check; you can't have a template with the same name as another field.

Jason


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