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 280403858D33 for ; Fri, 6 Jan 2023 09:53:23 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 280403858D33 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1672998802; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Pw0KUfQYbvPZB6//D//rFhaf1JO64eyE+NuhKAkFR4s=; b=d6Hb+AaGclGHMbm0t7XA8ZTt4UxeQOe0lETzbnp0KwUxb56ctUaVqmkmgyqIoz0lPP9KdX 0flzZjo8YkHy5Ks5rzPXJvcK5cGVcfxSg7Dp3I/d7LeGDIO4I21lphlOltNfVeE1011p44 6gN9Q/jh6kFSSqrIKfFODBbXyBpApwI= Received: from mail-qv1-f72.google.com (mail-qv1-f72.google.com [209.85.219.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-578-KCitLRhBNxCfJ0E-jWDkpg-1; Fri, 06 Jan 2023 04:53:21 -0500 X-MC-Unique: KCitLRhBNxCfJ0E-jWDkpg-1 Received: by mail-qv1-f72.google.com with SMTP id cx11-20020a056214188b00b00531cacde854so550421qvb.6 for ; Fri, 06 Jan 2023 01:53:21 -0800 (PST) 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:message-id:reply-to; bh=Pw0KUfQYbvPZB6//D//rFhaf1JO64eyE+NuhKAkFR4s=; b=L5YkUj7qZGuLUismW83eYsYT5TyJFM1q7e44skaJvHJs4s3VxcpfRSDxTBahBGcJnW HyOGdUooZy6j/S4bmoJU7dYEd6JOdu8II872HbymVfCn3OjUbxMYyuu3ZRrphz2xy/NX xPNAK1F1/mQcEJxpFHbL9sRwQ5eGChYQQfCHwBDZtPYeigJ0SFng8kT7DJyhNsWIDwoG Xa3x5SvIAU0Fia7yQGdjKFmrbQJSaBiB6hhNFR8G5WFUgS3+Hlb9DNvEgwuxp3uPV5cK n1kuiXil7tVH3x7HcpxpIFm6X2q+JD99x6E07T1MLY47AKpqn/evBDMAO8cRKaxXPhfB C5lg== X-Gm-Message-State: AFqh2kpoUeDkGVqI814YG/51hf4MOQd7hIHvPOJOCMuxZvRZ8SGX4Fzq 3Fs+Knaa7og6KLSUyImbpNeqLfW63JWHs0Gh2+NlSvnvhTYL+gueJxhWfzr+RUYXmEoKGkRPe9C KZeTkoAoIH3a8vYFgjHuOHg== X-Received: by 2002:ac8:544d:0:b0:3a7:fc75:22c6 with SMTP id d13-20020ac8544d000000b003a7fc7522c6mr96442930qtq.33.1672998801183; Fri, 06 Jan 2023 01:53:21 -0800 (PST) X-Google-Smtp-Source: AMrXdXspiEhWwp8I7nnZ8xL+K2gVPuBu9VM8I8KMh9Pu9W4k5YySm19zcEiLRtpfZEYY7OWny3gQEg== X-Received: by 2002:ac8:544d:0:b0:3a7:fc75:22c6 with SMTP id d13-20020ac8544d000000b003a7fc7522c6mr96442921qtq.33.1672998800991; Fri, 06 Jan 2023 01:53:20 -0800 (PST) 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 c8-20020ac80548000000b003972790deb9sm274104qth.84.2023.01.06.01.53.20 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 06 Jan 2023 01:53:20 -0800 (PST) Message-ID: Date: Fri, 6 Jan 2023 10:53:18 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 Subject: Re: [PATCH v4] gdb/c++: Detect ambiguous variables in imported namespaces To: Tom Tromey , Bruno Larsen via Gdb-patches References: <20221221161253.2127653-1-blarsen@redhat.com> <871qo8ep1d.fsf@tromey.com> From: Bruno Larsen In-Reply-To: <871qo8ep1d.fsf@tromey.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=-5.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_BARRACUDACENTRAL,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,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 List-Id: On 05/01/2023 20:53, Tom Tromey wrote: >>>>>> "Bruno" == Bruno Larsen via Gdb-patches writes: > Bruno> When running gdb.cp/nsusing.cc and stopping at line 17, we can ask GDB > Bruno> to print x and get a compiler-dependent answer. Using gcc 12.2.1, GDB > Bruno> will print M::x, and using clang 16.0.0 prints N::x. Not only is this > Bruno> behavior confusing to users, it is also not consistent with compiler > Bruno> behaviors, which would warn that using x is ambiguous at this point. > > Thank you. This is ok. Thanks, pushed! > Tom > -- Cheers, Bruno