From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2A5D9385DC1B; Wed, 15 Apr 2020 15:49:43 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2A5D9385DC1B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1586965783; bh=zo0NUv3U+WNdVyAFIjH/7vuPBNg5hAzhV0f7s/ut+u0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=cA53oY7exDqOBs12nPkwKS1eT6jBRDe1gE5j2CuG2BcFwZt6n6YIFKiQhHUbuduC4 fo334nbKWMIQC18ffW3orKm0xEMzkL7fAfQvkW1830VpdfR304aI7K9pJoHl8tBnEc 0sQYX7WiF25iyFYoPqhXlzB4KmertH2doytBDdKw= From: "msebor at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/94568] template specialization of equivalent nontype template argument involving member pointer considered distinct Date: Wed, 15 Apr 2020 15:49:43 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 10.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: msebor at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Apr 2020 15:49:43 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94568 --- Comment #1 from Martin Sebor --- Another test case, this one not involving pointers. Somehow the form of the initializer (=3D 0 vs { }) makes a difference. $ cat t.C && gcc -O2 -c -Wall -std=3Dc++2a t.C template struct D { }; constexpr const int i0 =3D 0; constexpr const int i_{ }; static_assert (i0 =3D=3D i_); typedef D DC01; typedef D DC01; typedef D DC01; t.C:11:28: error: conflicting declaration =E2=80=98typedef struct D DC01=E2=80=99 11 | typedef D DC01; | ^~~~ t.C:10:28: note: previous declaration as =E2=80=98typedef struct D DC01=E2=80=99 10 | typedef D DC01; | ^~~~=