From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 57DB03856951; Mon, 12 Sep 2022 19:47:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 57DB03856951 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1663012027; bh=CnjdR2IbEEFQHhI4zf+S9ysoSt+AbeORXYJMdBgYvVE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=pzjDgrBdZAkfzvNPsRh5dEBN5vos3O5MVssNemnL7x69G1tBoc/bU8/W2FwBdNOUR C5F5LR3YgmlcTapYEgqngJsPZTbj9ul9JdBKO80TfYYRHXX7uI09Vmim4MX96ZzMIB Qwb6syglT0eyXrxQtSUnTdffyQTxRBs3VOuBB8rE= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/93259] Unsized temporary array initialization problem Date: Mon, 12 Sep 2022 19:47:07 +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: 10.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit 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: 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=3D93259 --- Comment #5 from CVS Commits --- The master branch has been updated by Jason Merrill : https://gcc.gnu.org/g:6bcca5f642eb950a3cef024ea49a35e4792306f6 commit r13-2631-g6bcca5f642eb950a3cef024ea49a35e4792306f6 Author: Jason Merrill Date: Mon Sep 12 14:14:24 2022 -0400 c++: cast to array of unknown bound [PR93259] We already know to treat a variable of array-of-unknown-bound type as dependent, we should do the same for arr{}. PR c++/93259 gcc/cp/ChangeLog: * pt.cc (type_dependent_expression_p): Treat a compound literal of array-of-unknown-bound type like a variable. gcc/testsuite/ChangeLog: * g++.dg/cpp0x/initlist-array17.C: New test.=