From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id 527963857B97 for ; Tue, 4 Oct 2022 17:10:02 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 527963857B97 Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-554-cUtX0SCjM9KFiWoCHNJTcg-1; Tue, 04 Oct 2022 13:10:00 -0400 X-MC-Unique: cUtX0SCjM9KFiWoCHNJTcg-1 Received: by mail-wr1-f72.google.com with SMTP id u20-20020adfc654000000b0022cc05e9119so4315490wrg.16 for ; Tue, 04 Oct 2022 10:10:00 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date; bh=uQe7y0SAcdIppBFdPyJFGgk8B/XxXz//6qgKRRyYsnQ=; b=CZtAiRD7Jpg598yQ9q1usC0tIoFNR1QEmq7KV+K4aOHYRP+mXDyM938cqxs/wcIDbU rxRqgP2mIqX6wshUGs1z9Re61XA+YzHnWL59AM3eomTqvwYlqpi6ujtLNJd+PyeqNwc4 By83Bwd7Su2onsyXgu//iepuWoIt1/o9WA1uAX0Fi3gt2F0w/Mu8RAvnyDaWbEH3CqJC XBFLhlwUx1DtMNAMRIjaS9EhC0SUBqrp+/kxA6PWxVPCA8HXJcdjiqyaLiIoZeEbYkQd xflYvsGamDIeQmJwglgmPjQ4dQyzWjGwwMHse8usUkvvwT9iNCmkUDBuVrRc2Qp9i+dh 4Fow== X-Gm-Message-State: ACrzQf3zMzPUMgdlm1u0dgcPz2ug0GxIibS0PiLgTPDXlY7OVBhVpFrr oU8Nyk/vI93sAKMurZKkrsv9waiXR6SLlPiqrbnMcPV0hHW8SpkspvnM6RwRzlXqgsUYCdalk51 4CkpKVWXU3XsWvmLrkiLacA== X-Received: by 2002:a05:600c:548c:b0:3b5:53d:ed9 with SMTP id iv12-20020a05600c548c00b003b5053d0ed9mr532459wmb.178.1664903399501; Tue, 04 Oct 2022 10:09:59 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4YvPLoXVo7lBVWTc3UVIudNl/dBVJWMx0yQtYRLQWgbyhTyyr4x6zywpdVFqseFZPd3SeM+w== X-Received: by 2002:a05:600c:548c:b0:3b5:53d:ed9 with SMTP id iv12-20020a05600c548c00b003b5053d0ed9mr532449wmb.178.1664903399260; Tue, 04 Oct 2022 10:09:59 -0700 (PDT) Received: from [192.168.0.45] (ip-62-245-66-121.bb.vodafone.cz. [62.245.66.121]) by smtp.gmail.com with ESMTPSA id o9-20020a05600c058900b003b49aa8083esm15050614wmd.42.2022.10.04.10.09.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 04 Oct 2022 10:09:58 -0700 (PDT) Message-ID: <39694a50-02db-3b56-a024-f8d660dfebfe@redhat.com> Date: Tue, 4 Oct 2022 19:09:58 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.1 Subject: Re: [PATCH 4/9] gdb/testsuite: add XFAIL to gdb.cp/derivation.exp when using clang To: Bruno Larsen , Bruno Larsen via Gdb-patches References: <20221004170747.154307-1-blarsen@redhat.com> <20221004170747.154307-5-blarsen@redhat.com> From: Bruno Larsen In-Reply-To: <20221004170747.154307-5-blarsen@redhat.com> X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-11.8 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, NICE_REPLY_A, RCVD_IN_BARRACUDACENTRAL, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Oct 2022 17:10:03 -0000 Please disregard this specific patch. I messed up with git-format-patch locally, sorry for the noise Cheers, Bruno On 04/10/2022 19:07, Bruno Larsen wrote: > When running gdb.cp/derivation.exp using clang, we get an unexpected > failure when printing the type of a class with an internal typedef. This > happens because clang doesn't add accessibility information for typedefs > inside classes (see https://github.com/llvm/llvm-project/issues/57608 > for more info). To help with clang testing, an XFAIL was added to this > test. > --- > gdb/testsuite/gdb.cp/derivation.exp | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/gdb/testsuite/gdb.cp/derivation.exp b/gdb/testsuite/gdb.cp/derivation.exp > index c95fef004b5..2283e5b3616 100644 > --- a/gdb/testsuite/gdb.cp/derivation.exp > +++ b/gdb/testsuite/gdb.cp/derivation.exp > @@ -77,6 +77,10 @@ gdb_test "up" ".*main.*" "up from marker1" > > gdb_test "print a_instance" "\\$\[0-9\]+ = \{a = 1, aa = 2\}" "print value of a_instance" > > +# clang does not add accessibility information for typedefs inside classes > +if {[test_compiler_info {clang*}]} { > + setup_xfail "clang 57608" *-*-* > +} > cp_test_ptype_class \ > "a_instance" "" "class" "A" \ > {