From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4C98E3858D3C; Fri, 26 May 2023 06:22:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4C98E3858D3C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1685082148; bh=vRoAOEFhuLTXCKMZxk6lOB3UD0f1Ftzt7WMochjXLB0=; h=From:To:Subject:Date:From; b=lUDIqUOiWU8uIJ/rD37q3plMYWn4N24c6xyWwWc+RIGMHlHft8NLRqStFwazVkcJh fLz+/2b++9okS3/MGjjR/Eo/oHcrI1uruO81j09meQ297JNvfSZTxJcBaG8u3DJG+x OZcMl4yfAQlgtyO1oZ3xtUHWwLUR5eZ0isc+C7/A= From: "oficsu at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/109978] New: ICE in tsubst, at cp/pt.cc:15869: alias template + c array size deduction + lambda Date: Fri, 26 May 2023 06:22:27 +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: 12.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: oficsu at gmail dot com 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 attachments.created 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=3D109978 Bug ID: 109978 Summary: ICE in tsubst, at cp/pt.cc:15869: alias template + c array size deduction + lambda Product: gcc Version: 12.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: oficsu at gmail dot com Target Milestone: --- Created attachment 55162 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D55162&action=3Dedit A minimal reproducible example Lambdas in unevaluated contexts combined with an alias template to a c-style array causes ICE when it's used to deduce the size of an array passed to a function template, MRE: template using array =3D int[N]; template void foo(array&&) {} int main() { foo({1, 2, 3}); } I've used a system GCC to generate the bug report, but other versions (including trunk releases) affected also. See more on Compiler Explorer: https://godbolt.org/z/zW6KETaYn=