From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20651 invoked by alias); 28 Nov 2007 08:45:58 -0000 Received: (qmail 20643 invoked by uid 22791); 28 Nov 2007 08:45:58 -0000 X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 28 Nov 2007 08:45:52 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 071032A966F for ; Wed, 28 Nov 2007 03:45:50 -0500 (EST) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id LYKvsS137C6Z for ; Wed, 28 Nov 2007 03:45:49 -0500 (EST) Received: from nile.gnat.com (nile.gnat.com [205.232.38.5]) by rock.gnat.com (Postfix) with ESMTP id E6C642A966E for ; Wed, 28 Nov 2007 03:45:49 -0500 (EST) Received: by nile.gnat.com (Postfix, from userid 1345) id E25BD48CC02; Wed, 28 Nov 2007 03:45:49 -0500 (EST) From: Paul Hilfinger To: gdb@sourceware.org Subject: Strange case for expect_type Reply-to: Hilfinger@adacore.com Message-Id: <20071128084549.E25BD48CC02@nile.gnat.com> Date: Wed, 28 Nov 2007 08:45:00 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-11/txt/msg00254.txt.bz2 Can anyone explain this code fragment from evaluate_subexp_standard? case UNOP_IND: if (expect_type && TYPE_CODE (expect_type) == TYPE_CODE_PTR) expect_type = TYPE_TARGET_TYPE (check_typedef (expect_type)); arg1 = evaluate_subexp (expect_type, exp, pos, noside); It SEEMS to be saying that if I "expect" type T* from expression *E, then I should expect type T from E. Say what? Thanks for any help. Paul Hilfinger