From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 42344 invoked by alias); 1 Jul 2015 15:12:09 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 42334 invoked by uid 89); 1 Jul 2015 15:12:08 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.5 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=no version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Wed, 01 Jul 2015 15:12:08 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (Postfix) with ESMTPS id CA2D4B8919; Wed, 1 Jul 2015 15:12:06 +0000 (UTC) Received: from host1.jankratochvil.net (ovpn-116-41.ams2.redhat.com [10.36.116.41]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t61FC2x0011737 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 1 Jul 2015 11:12:05 -0400 Date: Wed, 01 Jul 2015 15:12:00 -0000 From: Jan Kratochvil To: Pedro Alves Cc: Yao Qi , gdb-patches@sourceware.org, Phil Muldoon Subject: Re: [patchv2] compile: Fix crash on cv-qualified self-reference Message-ID: <20150701151202.GA21275@host1.jankratochvil.net> References: <20150418172843.GA17777@host1.jankratochvil.net> <20150516132555.GB17266@host1.jankratochvil.net> <86lhf0p1hf.fsf@gmail.com> <20150701132406.GA13975@host1.jankratochvil.net> <5593F10D.4020903@redhat.com> <20150701141003.GA19545@host1.jankratochvil.net> <55940059.30603@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <55940059.30603@redhat.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-IsSubscribed: yes X-SW-Source: 2015-07/txt/msg00049.txt.bz2 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