public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/93259] Unsized temporary array initialization problem
       [not found] <bug-93259-4@http.gcc.gnu.org/bugzilla/>
@ 2020-12-03 10:55 ` m.cencora at gmail dot com
  2021-11-25  9:11 ` m.cencora at gmail dot com
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 6+ messages in thread
From: m.cencora at gmail dot com @ 2020-12-03 10:55 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from m.cencora at gmail dot com ---
Still fails on gcc 10.2 and trunk, in all std C++11-20 modes

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug c++/93259] Unsized temporary array initialization problem
       [not found] <bug-93259-4@http.gcc.gnu.org/bugzilla/>
  2020-12-03 10:55 ` [Bug c++/93259] Unsized temporary array initialization problem m.cencora at gmail dot com
@ 2021-11-25  9:11 ` m.cencora at gmail dot com
  2022-09-12 19:47 ` cvs-commit at gcc dot gnu.org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 6+ messages in thread
From: m.cencora at gmail dot com @ 2021-11-25  9:11 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from m.cencora at gmail dot com ---
This might be related to CWG2487 "Type dependence of function-style cast to
incomplete array type"

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug c++/93259] Unsized temporary array initialization problem
       [not found] <bug-93259-4@http.gcc.gnu.org/bugzilla/>
  2020-12-03 10:55 ` [Bug c++/93259] Unsized temporary array initialization problem m.cencora at gmail dot com
  2021-11-25  9:11 ` m.cencora at gmail dot com
@ 2022-09-12 19:47 ` cvs-commit at gcc dot gnu.org
  2022-09-12 20:30 ` cvs-commit at gcc dot gnu.org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2022-09-12 19:47 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jason Merrill <jason@gcc.gnu.org>:

https://gcc.gnu.org/g:6bcca5f642eb950a3cef024ea49a35e4792306f6

commit r13-2631-g6bcca5f642eb950a3cef024ea49a35e4792306f6
Author: Jason Merrill <jason@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.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug c++/93259] Unsized temporary array initialization problem
       [not found] <bug-93259-4@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2022-09-12 19:47 ` cvs-commit at gcc dot gnu.org
@ 2022-09-12 20:30 ` cvs-commit at gcc dot gnu.org
  2023-12-12 10:22 ` m.cencora at gmail dot com
  2023-12-12 16:49 ` ppalka at gcc dot gnu.org
  5 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2022-09-12 20:30 UTC (permalink / raw)
  To: gcc-bugs

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
<jason@gcc.gnu.org>:

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

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug c++/93259] Unsized temporary array initialization problem
       [not found] <bug-93259-4@http.gcc.gnu.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2022-09-12 20:30 ` cvs-commit at gcc dot gnu.org
@ 2023-12-12 10:22 ` m.cencora at gmail dot com
  2023-12-12 16:49 ` ppalka at gcc dot gnu.org
  5 siblings, 0 replies; 6+ messages in thread
From: m.cencora at gmail dot com @ 2023-12-12 10:22 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #7 from m.cencora at gmail dot com ---
This seems to be fixed in gcc 12.3 and gcc 13+

Can we close this?

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug c++/93259] Unsized temporary array initialization problem
       [not found] <bug-93259-4@http.gcc.gnu.org/bugzilla/>
                   ` (4 preceding siblings ...)
  2023-12-12 10:22 ` m.cencora at gmail dot com
@ 2023-12-12 16:49 ` ppalka at gcc dot gnu.org
  5 siblings, 0 replies; 6+ messages in thread
From: ppalka at gcc dot gnu.org @ 2023-12-12 16:49 UTC (permalink / raw)
  To: gcc-bugs

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

Patrick Palka <ppalka at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ppalka at gcc dot gnu.org
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED
   Target Milestone|---                         |12.3

--- Comment #8 from Patrick Palka <ppalka at gcc dot gnu.org> ---
Fixed for GCC 12.3+ then, thanks for the heads up.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-12-12 16:49 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-93259-4@http.gcc.gnu.org/bugzilla/>
2020-12-03 10:55 ` [Bug c++/93259] Unsized temporary array initialization problem m.cencora at gmail dot com
2021-11-25  9:11 ` m.cencora at gmail dot com
2022-09-12 19:47 ` cvs-commit at gcc dot gnu.org
2022-09-12 20:30 ` cvs-commit at gcc dot gnu.org
2023-12-12 10:22 ` m.cencora at gmail dot com
2023-12-12 16:49 ` ppalka at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).