From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 899CE3858407; Tue, 12 Apr 2022 03:57:43 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 899CE3858407 From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/105223] [12 Regression] filter_memfn_lookup internal compiler error Date: Tue, 12 Apr 2022 03:57: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: 12.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: jason at gcc dot gnu.org X-Bugzilla-Target-Milestone: 12.0 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: Tue, 12 Apr 2022 03:57:43 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D105223 --- Comment #4 from CVS Commits --- The master branch has been updated by Jason Merrill : https://gcc.gnu.org/g:4195fced8a13422db94e179404588d9d887a036a commit r12-8098-g4195fced8a13422db94e179404588d9d887a036a Author: Jason Merrill Date: Mon Apr 11 17:51:43 2022 -0400 c++: using operator=3D [PR105223] In a template class A we normally add an implicit using A::operator=3D = as a placeholder for the implicitly declared operator whose signature we don= 't know yet. In my patch for PR92918 I stopped doing that if the class ha= s an explicit operator=3D, but that was wrong; an operator=3D taking an unre= lated type doesn't prevent the implicit declaration. When I was working on that patch, the change was necessary to avoid ano= ther regression, but apparently it is no longer needed. PR c++/105223 PR c++/92918 gcc/cp/ChangeLog: * class.cc (finish_struct): Always using op=3D. gcc/testsuite/ChangeLog: * g++.dg/template/using31.C: New test.=