https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93259

--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-12 branch has been updated by Jason Merrill
<ja...@gcc.gnu.org>:

https://gcc.gnu.org/g:8f37a44483870e0db8cd6437ae9716cbe28b7f59

commit r12-8759-g8f37a44483870e0db8cd6437ae9716cbe28b7f59
Author: Jason Merrill <ja...@redhat.com>
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.

Reply via email to