From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 43EF83856DCE; Mon, 12 Sep 2022 20:30:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 43EF83856DCE DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1663014606; bh=/3ZTFNhBNoH7dkuROVlqPAYag/9TOzpbwivpOSQVbxQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=fziJnYrE0Brbc7nNGXGsj9jXl+uzGhdbabEBcFGpoRK81b3hdiInNCk0VIKxhXYtE XqTQMZh5Ywdvxo2I3QUdZ/o9GQ1lm+IvHUo9xJFyzLcIa4p2nk0mVSdM4rGitRTkcC kvtTnU5RYCHM18lj/Wr9UvK31P6D3HM+rLASlQCw= 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 20:30:06 +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 #6 from CVS Commits --- The releases/gcc-12 branch has been updated by Jason Merrill : https://gcc.gnu.org/g:8f37a44483870e0db8cd6437ae9716cbe28b7f59 commit r12-8759-g8f37a44483870e0db8cd6437ae9716cbe28b7f59 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.=