From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 50122394743A; Thu, 27 Jan 2022 16:02:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 50122394743A From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/92944] [concepts] redefinition error when using constrained structure template inside namespace Date: Thu, 27 Jan 2022 16:02:17 +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: 9.2.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: ppalka 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: Thu, 27 Jan 2022 16:02:18 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D92944 --- Comment #5 from CVS Commits --- The master branch has been updated by Patrick Palka : https://gcc.gnu.org/g:ce6054a22ae14594a2919d2ad87cd9478e616fb3 commit r12-6896-gce6054a22ae14594a2919d2ad87cd9478e616fb3 Author: Patrick Palka Date: Thu Jan 27 10:56:34 2022 -0500 c++: constrained partial spec using qualified name [PR92944, PR103678] In the nested_name_specifier branch within cp_parser_class_head, we need to update 'type' with the result of maybe_process_partial_specialization like we do in the template_id_p branch. PR c++/92944 PR c++/103678 gcc/cp/ChangeLog: * parser.cc (cp_parser_class_head): Update 'type' with the resu= lt of maybe_process_partial_specialization in the nested_name_specifier branch. Refactor nearby code to accomoda= te that maybe_process_partial_specialization returns a _TYPE, not a TYPE_DECL, and eliminate local variable 'class_type' in passing. gcc/testsuite/ChangeLog: * g++.dg/cpp2a/concepts-partial-spec10.C: New test. * g++.dg/cpp2a/concepts-partial-spec11.C: New test.=