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]

Re: (C++) patch for TYPE_READONLY handling


>>>>> "Jason" == Jason Merrill <jason@cygnus.com> writes:

    Jason> Applied.  grokdeclarator was stripping const from an array
    Jason> typedef.  Fixes g++.other/conv3.C.

Rats.  I've already fixed this in my tree as part of the `restrict'
integration, and created similar macros.  Since I've used them
pervasively, I'm going to yank yours out and use mine instead, if it's
OK with you.  Also, your version still doesn't work on things like:

  const int a[10][10][10][10][10];

I don't think.  I'll be putting in these fixes by the end of the day,
which also fix some long-standing problems with `volatile' virtual
functions, and miscellaneous other const-correctness issues.

-- 
Mark Mitchell 			mark@markmitchell.com
Mark Mitchell Consulting	http://www.markmitchell.com


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