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] Fix PR c++/36741


On Fri, Aug 22, 2008 at 3:28 PM, Dodji Seketeli <dodji@redhat.com> wrote:
> +  if (TREE_TYPE (c) == sizetype

You most likely want TYPE_IS_SIZETYPE (TREE_TYPE (c)) instead of the
above check.  And making sure that TREE_CODE (TREE_TYPE (c)) ==
INTEGER_TYPE.  I think ENUMERATION_TYPE can be on an INTEGER_CST.

Thanks,
Andrew Pinski


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