[PATCH INSTALLED]: delete some const shadow functions

Richard Guenther richard.guenther@gmail.com
Sat Sep 1 21:06:00 GMT 2007


On 9/1/07, Tom Tromey <tromey@redhat.com> wrote:
> >>>>> "Kaveh" == Kaveh R GHAZI <ghazi@caip.rutgers.edu> writes:
>
> Kaveh> Me too, I prefer the const shadow functions.  When we start
> Kaveh> using C++ in GCC sources I'll convert these to use function
> Kaveh> overloading.
>
> I love the "when" :-).  This seems like a situation where templates or
> const member functions would be appropriate.

Heh.  In my local experiment to get the middle-end build with C++ the
most interesting problem I face is that C++ enums suck.  Or how we
use them in GCC...  It's hard to fix this in a way that it builds with both
C and C++ and still looks sane.  (Given the extra complication that
C++ enums may have less precision than an int)

Richard.



More information about the Gcc-patches mailing list