From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 55489385C32C; Wed, 14 Feb 2024 11:06:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 55489385C32C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1707908813; bh=s+tjLGG/aHcIoDSHKb/RaXSDAG/taIRjxh4gKTlAWDk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=M8SAOOyuhdoYoADqj36VXCM5SJCePefv1/3TELADZiHchoPVz1MHDoce3KS9AMcwt gUQbt4wdc8QUkOkj+pAoFXFUMurgoehaNkFh7BY034iho5bDmb4UC6m5B9LnbqGGq/ /Nvgx8bULbwjXvRB65rdl0O/bG5XJAqd++Ddu42w= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: =?UTF-8?B?W0J1ZyBjKysvOTk1NzNdIElDRSBpbiBtb2R1bGU6IGludGVybmFs?= =?UTF-8?B?IGNvbXBpbGVyIGVycm9yOiB0cmVlIGNoZWNrOiBleHBlY3RlZCBjbGFzcyA=?= =?UTF-8?B?4oCYdHlwZeKAmSwgaGF2ZSDigJhleGNlcHRpb25hbOKAmSAoZXJyb3JfbWFy?= =?UTF-8?B?aykgaW4gc3RhcnRfZW51bSwgYXQgY3AvZGVjbC5jOjE1NjYz?= Date: Wed, 14 Feb 2024 11:06:49 +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: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: NEW 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D99573 --- Comment #3 from GCC Commits --- The master branch has been updated by Nathaniel Shead : https://gcc.gnu.org/g:bbb30f12a7e5ce008f59ec26c9e4cc65ee79fe56 commit r14-8974-gbbb30f12a7e5ce008f59ec26c9e4cc65ee79fe56 Author: Nathaniel Shead Date: Mon Feb 12 12:40:15 2024 +1100 c++: Fix error recovery when redeclaring enum in different module [PR99= 573] This ensures that with modules enabled, redeclaring an enum in the wrong module or with the wrong underlying type no longer ICEs. The patch also rearranges the order of the checks a little because I think it's probably more important to note that you can't redeclare the enum all before complaining about mismatched underlying types etc. As a drive by this patch also adds some missing diagnostic groups, and rewords the module redeclaration error message to more closely match the wording used in other places this check is done. PR c++/99573 gcc/cp/ChangeLog: * decl.cc (start_enum): Reorder check for redeclaring in module. Add missing auto_diagnostic_groups. gcc/testsuite/ChangeLog: * g++.dg/modules/enum-12.C: New test. Signed-off-by: Nathaniel Shead Reviewed-by: Jason Merrill =