Re: [patchv2] compile: Fix crash on cv-qualified self-reference

Jan Kratochvil
2015-07-01T15:12:09Z

On Wed, 01 Jul 2015 16:59:37 +0200, Pedro Alves wrote:
> Well, I'd say that having the core GDB Type be aware of GccType
> directly would be a misdesign, not a feature.

You are right, it would be reversed, anyway not the insance crap of
TYPE_CODE_*.

> So a trivial 1-1 conversion or your code would be:

I find it complicates the code even more without C++.

> I'm very much looking forward to C++ as well,

So why that does not happen? You have added a disadvantage of more
requirements for the code compliance with the new exception macros but there
is still no advantage from that.

> but switch/case vs
> virtual methods here is really more about syntax sugar than design.

C++ may look so to someone but is not just a syntax sugar.

Jan