From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2488 invoked by alias); 6 Jul 2012 14:36:29 -0000 Received: (qmail 2355 invoked by uid 22791); 6 Jul 2012 14:36:28 -0000 X-SWARE-Spam-Status: No, hits=-6.5 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 06 Jul 2012 14:36:11 +0000 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q66EaB18027636 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 6 Jul 2012 10:36:11 -0400 Received: from barimba (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id q66Ea74Z007549 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Fri, 6 Jul 2012 10:36:09 -0400 From: Tom Tromey To: gdb-patches@sourceware.org Subject: [0/5] FYI: fix typename parsing bugs Date: Fri, 06 Jul 2012 14:36:00 -0000 Message-ID: <87k3yhot2g.fsf@fleche.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain 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 X-SW-Source: 2012-07/txt/msg00090.txt.bz2 This series fixes the typename parsing regressions I introduced, and also the other typename bugs I tripped across: (gdb) whatis int *(*)() type = int (**)() ... my regression (gdb) whatis int (*)(double) type = int (*)() Argument types dropped. (gdb) whatis char (*(*)())[23] type = char (**)())[23] Bad parse. (gdb) whatis int(*)(const int *, ...) A syntax error in expression, near `...)'. Doesn't understand varargs. (gdb) whatis const int * (*)(const int *) type = const int () "*" mysteriously dropped. There is still one more bug remaining that I know of, but I didn't think it was important enough to bother with right now: (gdb) whatis int & & type = int && A reference to a reference doesn't make sense. Maybe I'll fix this later; it wasn't immediately clear to me exactly where this ought to error out. Tom