From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 8CB563858D37; Mon, 6 Jul 2020 13:50:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8CB563858D37 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1594043432; bh=tzWe0tAXcklB/OBCH7IbCQYYKHFg5S+rdcdnUTDeFP0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=kEt6dQQI1qsy+UUisx8BWbcj8vASz5HKozg+LGl15SruWTsKwprr009hmGc5n5n+s npI8quO/k2HsWCs10Bb+Q3HUKViXmZVcBqAdiOSzWcxd69aigMsCmPuIIz9TnhTV3T qMGehjL0AGZug8Dxhl8j+PX7C2g1xND15gFSHqJs= From: "haoxintu at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/96077] GCC accepts ill-legal local enum definition Date: Mon, 06 Jul 2020 13:50:32 +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: accepts-invalid X-Bugzilla-Severity: normal X-Bugzilla-Who: haoxintu at gmail dot com 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 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: Mon, 06 Jul 2020 13:50:32 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D96077 --- Comment #2 from Haoxin Tu --- (In reply to Jonathan Wakely from comment #1) > It's not ideal to provide a testcase that doesn't compile for an > accepts-invalid bug. A testcase that actually compiles is a better > demonstration that the invalid code is accepted OK, I got it. Thank you Jonathan. I will do better next time.=