From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 06E553858409; Mon, 31 Oct 2022 00:50:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 06E553858409 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1667177401; bh=E2WNg+Za/otZg5pH8y+dEwOfhNXaVnP0mZeNTmow34U=; h=From:To:Subject:Date:In-Reply-To:References:From; b=QA1/qvlEcMLuZW1BbtZ0YJ2S3dmpXIIPWEmY7ahdq+3DTcjQQPqjmwRh35Ijf9olx kIqHjTG20QXlyW9wRfcS+LgXr7n7mSHNt42SaAlKecSOBZ+hRWqNNmkgzdEchzGBBg KHLMajmSwFQGogC2Ql7+cCFaN0wb6/C4w0eUCFnY= From: "chris-gcc-bugzilla at cybermato dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/103081] [ICE] with "using enum" Date: Mon, 31 Oct 2022 00:50:00 +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.1.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: chris-gcc-bugzilla at cybermato 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D103081 --- Comment #9 from Chris MacGregor --- With the testcase I just attached, using 13.0.0 20221030 via Godbolt: https://godbolt.org/z/8Y4cr6MxY : In instantiation of 'Event::Event(EventCat, auto:1) [with auto:1 = =3D int]': :38:32: required from here :30:30: internal compiler error: tree check: expected enumeral_type, have record_type in tsubst_copy, at cp/pt.cc:17024 30 | boundsCheck(a_category, kEventCat_Min); // using "EventCat::kEventCat_Min" instead of just "kEventCat_Min" makes this not fa= il | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~=