From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id F2B22392AC25; Mon, 12 Sep 2022 17:50:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F2B22392AC25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1663005052; bh=+sOIRPrpfxEOeZEjSkAvmfwvFxdLBafglKWo5zL8844=; h=From:To:Subject:Date:In-Reply-To:References:From; b=cbZE1wQjtum/6afxh6Z9ZqEsVQEwAiNzW2Ypd3jN/ylazDw8zRNr2Bs/lvx3q4PiI f3t0Dez9Rgx5VMoaIDSaim7yDB4pTyyeCajPIjqczb4q+jhyACRDvqY7Cs7Xc4Ksoq Dx26OYrJmylPIt3AtGkSYqOkO3NxPuMCp2F3l0Wg= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/106567] [13 Regression] An array with a dependent type and initializer-deduced bound is treated as an array of unknown bound when captured in a lambda Date: Mon, 12 Sep 2022 17:50:52 +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: 13.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: jason at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.0 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=3D106567 --- Comment #6 from CVS Commits --- The master branch has been updated by Jason Merrill : https://gcc.gnu.org/g:7c989a8ed47228bdd494a2f0d1f6fdd325f953d7 commit r13-2628-g7c989a8ed47228bdd494a2f0d1f6fdd325f953d7 Author: Jason Merrill Date: Mon Sep 12 12:59:46 2022 -0400 c++: lambda capture of array with deduced bounds [PR106567] We can't use the type of an array variable directly if we haven't deduc= ed its length yet. PR c++/106567 gcc/cp/ChangeLog: * lambda.cc (type_deducible_expression_p): Check array_of_unknown_bound_p. gcc/testsuite/ChangeLog: * g++.dg/cpp0x/lambda/lambda-array4.C: New test.=