From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5ABEA3971800; Tue, 2 Feb 2021 09:44:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5ABEA3971800 From: "matthieum.147192 at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/98288] Accidental equality of classes templated by pointer to local static constant of templated function Date: Tue, 02 Feb 2021 09:44:14 +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: 11.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: matthieum.147192 at gmail dot com 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: version 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: Tue, 02 Feb 2021 09:44:14 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D98288 Matthieu M changed: What |Removed |Added ---------------------------------------------------------------------------- Version|7.2.0 |11.0 --- Comment #3 from Matthieu M --- Updated version of compiler. Also, on gcc trunk this is an ICE: :18:32: internal compiler error: in discriminator_for_local_entity,= at cp/mangle.c:1949 18 | static constexpr int const I =3D 2; | ^ 0x1ce5ce9 internal_error(char const*, ...) ???:0 0x6b6f1b fancy_abort(char const*, int, char const*) ???:0 0x812f3b mangle_decl(tree_node*) ???:0 0x135b052 decl_assembler_name(tree_node*) ???:0 0x13da4da make_decl_rtl(tree_node*) ???:0 0x13dd8fd lookup_constant_def(tree_node*) ???:0=