From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6CF573858C27; Tue, 4 Jan 2022 02:27:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6CF573858C27 From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/99521] ICE Segmentation fault when decltype lambda in requires clause Date: Tue, 04 Jan 2022 02:27:39 +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: error-recovery, ice-on-invalid-code X-Bugzilla-Severity: trivial X-Bugzilla-Who: pinskia 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: keywords cf_reconfirmed_on everconfirmed bug_severity resolution bug_status 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: Tue, 04 Jan 2022 02:27:39 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D99521 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |error-recovery Last reconfirmed| |2022-01-04 Ever confirmed|0 |1 Severity|normal |trivial Resolution|DUPLICATE |--- Status|RESOLVED |NEW --- Comment #2 from Andrew Pinski --- This one still ICEs but in a different location on the trunk: : In function 'int main()': :3:22: error: expected primary-expression before 'decltype' 3 | [](auto) requires (decltype; | ^~~~~~~~ :3:22: error: expected ')' before 'decltype' 3 | [](auto) requires (decltype; | ~^~~~~~~~ | ) :3:3: error: constraints on a non-templated function 3 | [](auto) requires (decltype; | ^ :3:22: internal compiler error: in dependent_type_p, at cp/pt.c:271= 43 3 | [](auto) requires (decltype; | ^~~~~~~~ 0x21349c9 internal_error(char const*, ...) ???:0 0x73802f fancy_abort(char const*, int, char const*) ???:0 0x990c38 dependent_type_p(tree_node*) ???:0 0x819798 start_preparsed_function(tree_node*, tree_node*, int) ???:0 0x895754 start_lambda_function(tree_node*, tree_node*) ???:0 0x9790cd c_parse_file() ???:0 0xb07012 c_common_parse_file() ???:0 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions.=