From: Tom de Vries <tdevries@suse.de>
To: Pedro Alves <pedro@palves.net>, Gary Benson <gbenson@redhat.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH v2] Enable gdb.cp/ambiguous.exp with GCC and clang
Date: Fri, 11 Sep 2020 15:59:17 +0200 [thread overview]
Message-ID: <36f90b5a-2994-69fc-35c3-be274679552f@suse.de> (raw)
In-Reply-To: <413512b9-dd0d-145c-52ca-5befae84b203@palves.net>
On 8/27/20 8:04 PM, Pedro Alves wrote:
> On 8/27/20 5:18 PM, Gary Benson wrote:
>> Pedro Alves wrote:
>>> On 8/27/20 4:07 PM, Gary Benson wrote:
>>>> Pedro Alves wrote:
>>>>> On 8/27/20 11:39 AM, Gary Benson wrote:
>>>>>> Luis Machado wrote:
>>>>>>> I get the following, under Ubuntu 18.04 (GCC 7.x) with this commit...
>>>>>>>
>>>>>>> FAIL: gdb.cp/ambiguous.exp: print x.x
>>>>>>> FAIL: gdb.cp/ambiguous.exp: print n.x
>>>>>>> FAIL: gdb.cp/ambiguous.exp: print j.x
>>>>>>> FAIL: gdb.cp/ambiguous.exp: print jva1.x
>>>>>>> FAIL: gdb.cp/ambiguous.exp: print jva2.x
>>>>>>> FAIL: gdb.cp/ambiguous.exp: print (A1)j
>>>>>>> FAIL: gdb.cp/ambiguous.exp: print (A1)jva1
>>>>>>>
>>>>>>> Is the test really supposed to run with older GCC's?
>>>>>>
>>>>>> Maybe not. Though, I don't know what version of GCC it ought to
>>>>>> start working on, so it's hard to know what to do. I could leave
>>>>>> the "-w" in for GCC < 10, and add an extra check to make it bail
>>>>>> out for GCC <= your version, Luis? With a suitable comment to
>>>>>> mention that that's not set in stone?
>>>>>
>>>>> I'm seeing it fail with GCC 9 and clang 10 as well.
>>>>>
>>>>> Actually, the testcase can't be working _anywhere_. It's testing a
>>>>> feature that is gone from GDB.
>>>> [snip]
>>>>> ...search_struct_field does not handle the ambiguous field
>>>>> case nowadays. Somehow it got lost over the years.
>>>>> That seems like a regression. I wrote up a patch that adds
>>>>> it back (though different), but it exposed other latent
>>>>> bugs... Sigh. I'll post it soon.
>>>>
>>>> So the test would start passing if that patch was added?
>>>> Should we leave the test alone, or XFAIL the cases that
>>>> fail, or...?
>>>
>>> I'm adjusting / fixing the testcase at the same time as I'm
>>> patching GDB. So for now, do nothing.
>>
>> Awesome, thank you.
>
> I've sent it now, here:
>
> [PATCH] Reject ambiguous C++ field accesses
> https://sourceware.org/pipermail/gdb-patches/2020-August/171526.html
>
With the gdb 10 branching planned to happen soon, I've marked these
FAILs as KFAIL, in order to make sure that these won't show up as
"unexpected failure" in the gdb 10 release.
Thanks,
- Tom
prev parent reply other threads:[~2020-09-11 13:59 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-27 13:09 [PATCH] Enable gdb.cp/ambiguous.exp with GCC >= 10.1 " Gary Benson
2020-08-07 15:27 ` Pedro Alves
2020-08-17 13:24 ` [PATCH v2] Enable gdb.cp/ambiguous.exp with GCC " Gary Benson
2020-08-17 14:00 ` Pedro Alves
2020-08-17 14:57 ` Gary Benson
2020-08-25 14:21 ` Gary Benson
2020-08-26 17:13 ` Luis Machado
2020-08-27 10:39 ` Gary Benson
2020-08-27 11:20 ` Pedro Alves
2020-08-27 11:25 ` Luis Machado
2020-08-27 15:07 ` Gary Benson
2020-08-27 15:47 ` Pedro Alves
2020-08-27 16:18 ` Gary Benson
2020-08-27 18:04 ` Pedro Alves
2020-09-11 13:59 ` Tom de Vries [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=36f90b5a-2994-69fc-35c3-be274679552f@suse.de \
--to=tdevries@suse.de \
--cc=gbenson@redhat.com \
--cc=gdb-patches@sourceware.org \
--cc=pedro@palves.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox