From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6015C3857707; Mon, 15 May 2023 08:53:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6015C3857707 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1684140786; bh=zv78t+/haFJgxILoLCtUe6501+shIE70lvlS3dTPE44=; h=From:To:Subject:Date:From; b=fMIBGwf63Rde5nfxyM1HMW3ZesfnE9qJzdre7qE1zbOTcgz6woNfOZ3+Rcm46C+Jg FFQGG3BFqSvruhbMHlgQ4/IsdUtxEjK/v6jsSDgsqC4qZMC1WiyqH+i0QQ/GDjwEUi ViTkJa3IGUvndWUR4O0JEn+EfzFWgmBOSn3ihBzw= From: "saifi.khan at nishan dot io" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/109859] New: ICE on concept mis-typed as template type parameter Date: Mon, 15 May 2023 08:53:06 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: saifi.khan at nishan dot io X-Bugzilla-Status: UNCONFIRMED 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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 Bug ID: 109859 Summary: ICE on concept mis-typed as template type parameter Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: saifi.khan at nishan dot io Target Milestone: --- while exploring ranges, i mis-typed the code as follows. should have written template -- #include template int fn (R); int main () {;} -- using gcc version 14.0.0 20230514 (experimental) (GCC) g++ -std=3Dc++23 file.cc -- output is file.cc:3:37: internal compiler error: in cp_parser_placeholder_type_specif= ier, at cp/parser.cc:20242 3 | template | ^~~~~~~~~~~~~~~~~~~ 0x75a5de cp_parser_placeholder_type_specifier /opt/gcc/src/gcc/cp/parser.cc:20242 0xbb9e11 cp_parser_simple_type_specifier /opt/gcc/src/gcc/cp/parser.cc:20079 0xb8ec55 cp_parser_type_specifier /opt/gcc/src/gcc/cp/parser.cc:19614 0xba3e42 cp_parser_type_specifier_seq /opt/gcc/src/gcc/cp/parser.cc:24615 0xba1a3d cp_parser_type_id_1 /opt/gcc/src/gcc/cp/parser.cc:24412 0xba1d50 cp_parser_type_id /opt/gcc/src/gcc/cp/parser.cc:24511 0xba1d50 cp_parser_default_type_template_argument /opt/gcc/src/gcc/cp/parser.cc:17963 0xbb5617 cp_parser_type_parameter /opt/gcc/src/gcc/cp/parser.cc:18199 0xbb46d4 cp_parser_template_parameter /opt/gcc/src/gcc/cp/parser.cc:18080 0xbb46d4 cp_parser_template_parameter_list /opt/gcc/src/gcc/cp/parser.cc:17679 0xbc6ce7 cp_parser_explicit_template_declaration /opt/gcc/src/gcc/cp/parser.cc:32382 0xbc9a95 cp_parser_declaration /opt/gcc/src/gcc/cp/parser.cc:15050 0xbca553 cp_parser_toplevel_declaration /opt/gcc/src/gcc/cp/parser.cc:15142 0xbca553 cp_parser_translation_unit /opt/gcc/src/gcc/cp/parser.cc:5131 0xbca553 c_parse_file() /opt/gcc/src/gcc/cp/parser.cc:49635 0xd17685 c_common_parse_file() /opt/gcc/src/gcc/c-family/c-opts.cc:1248 --- Thanks for your time !=