From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 8297F3857B86; Fri, 16 Feb 2024 18:54:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8297F3857B86 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1708109662; bh=wT1aB3CtUp3uoAf4cvqbZkhZYb257N1bYYETq+lVyzo=; h=From:To:Subject:Date:In-Reply-To:References:From; b=QAaz+MEDmxnLDvijHSGQoF1ZHYikT26yk4tRlniu9Vi33/Dd8ILGAvMdHzBB3kE4y 27m9N3JkEPCJk72/QNU8THyCJM0s+9UbIhsO+3XhWGKGEkMKlRSR8zhKF5wd5wAsYC FeHOyiw0ao2I+1PEhdg9SORFLrAwzxS/ZmF0nrpc= From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/109859] [12/13/14 Regression] ICE on concept mis-typed as template type parameter Date: Fri, 16 Feb 2024 18:54:22 +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: 14.0 X-Bugzilla-Keywords: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 12.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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=3D109859 Marek Polacek changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mpolacek at gcc dot gnu.org --- Comment #4 from Marek Polacek --- We're hitting the assert here: /* In a template parameter list, a type-parameter can be introduced by type-constraints alone. */ if (processing_template_parmlist && !placeholder) { /* In a default argument we may not be creating new parameters. */ if (parser->local_variables_forbidden_p & LOCAL_VARS_FORBIDDEN) { /* If this assert turns out to be false, do error() instead. */ gcc_assert (tentative); return error_mark_node; } so presumably we should change it to error() as the comment says.=