public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/90926] [8/9/10/11 Regression] member char array with string literal initializer causes = {} to fail
       [not found] <bug-90926-4@http.gcc.gnu.org/bugzilla/>
@ 2021-01-05 11:15 ` thomgree at cisco dot com
  2021-02-04 15:46 ` cvs-commit at gcc dot gnu.org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 8+ messages in thread
From: thomgree at cisco dot com @ 2021-01-05 11:15 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from thomgree at cisco dot com ---
I made a fix for this bug here:
https://gcc.gnu.org/pipermail/gcc-patches/2020-December/562259.html

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

* [Bug c++/90926] [8/9/10/11 Regression] member char array with string literal initializer causes = {} to fail
       [not found] <bug-90926-4@http.gcc.gnu.org/bugzilla/>
  2021-01-05 11:15 ` [Bug c++/90926] [8/9/10/11 Regression] member char array with string literal initializer causes = {} to fail thomgree at cisco dot com
@ 2021-02-04 15:46 ` cvs-commit at gcc dot gnu.org
  2021-02-04 16:39 ` [Bug c++/90926] [8/9/10 " jason at gcc dot gnu.org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-02-04 15:46 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 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:e6cc142ad99ab8d28581f4ce61056c9cce74dba3

commit r11-7102-ge6cc142ad99ab8d28581f4ce61056c9cce74dba3
Author: Tom Greenslade (thomgree) <thomgree@cisco.com>
Date:   Wed Feb 3 11:31:53 2021 +0000

    c++: fix string literal member initializer bug [PR90926]

    build_aggr_conv did not correctly handle string literal member
initializers.
    Extended can_convert_array to handle this case. For the additional check of
    compatibility of character types, factored out code from digest_init_r into
    a new function.

    gcc/cp/ChangeLog:

            PR c++/90926
            * call.c (can_convert_array): Extend to handle all valid aggregate
            initializers of an array; including by string literals, not just by
            brace-init-list.
            (build_aggr_conv): Call can_convert_array more often, not just in
            brace-init-list case.
            * typeck2.c (array_string_literal_compatible_p): New function.
            (digest_init_r): call array_string_literal_compatible_p
            * cp-tree.h: (array_string_literal_compatible_p): Declare.

    gcc/testsuite/ChangeLog:

            PR c++/90926
            * g++.dg/cpp1y/nsdmi-aggr12.C: New test.

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

* [Bug c++/90926] [8/9/10 Regression] member char array with string literal initializer causes = {} to fail
       [not found] <bug-90926-4@http.gcc.gnu.org/bugzilla/>
  2021-01-05 11:15 ` [Bug c++/90926] [8/9/10/11 Regression] member char array with string literal initializer causes = {} to fail thomgree at cisco dot com
  2021-02-04 15:46 ` cvs-commit at gcc dot gnu.org
@ 2021-02-04 16:39 ` jason at gcc dot gnu.org
  2021-05-14  9:51 ` [Bug c++/90926] [9/10 " jakub at gcc dot gnu.org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 8+ messages in thread
From: jason at gcc dot gnu.org @ 2021-02-04 16:39 UTC (permalink / raw)
  To: gcc-bugs

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

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[8/9/10/11 Regression]      |[8/9/10 Regression] member
                   |member char array with      |char array with string
                   |string literal initializer  |literal initializer causes
                   |causes = {} to fail         |= {} to fail

--- Comment #7 from Jason Merrill <jason at gcc dot gnu.org> ---
Fixed on trunk so far.

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

* [Bug c++/90926] [9/10 Regression] member char array with string literal initializer causes = {} to fail
       [not found] <bug-90926-4@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2021-02-04 16:39 ` [Bug c++/90926] [8/9/10 " jason at gcc dot gnu.org
@ 2021-05-14  9:51 ` jakub at gcc dot gnu.org
  2021-06-01  8:14 ` rguenth at gcc dot gnu.org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2021-05-14  9:51 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|8.5                         |9.4

--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 8 branch is being closed.

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

* [Bug c++/90926] [9/10 Regression] member char array with string literal initializer causes = {} to fail
       [not found] <bug-90926-4@http.gcc.gnu.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2021-05-14  9:51 ` [Bug c++/90926] [9/10 " jakub at gcc dot gnu.org
@ 2021-06-01  8:14 ` rguenth at gcc dot gnu.org
  2022-05-27  9:41 ` [Bug c++/90926] [10 " rguenth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-06-01  8:14 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|9.4                         |9.5

--- Comment #9 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 9.4 is being released, retargeting bugs to GCC 9.5.

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

* [Bug c++/90926] [10 Regression] member char array with string literal initializer causes = {} to fail
       [not found] <bug-90926-4@http.gcc.gnu.org/bugzilla/>
                   ` (4 preceding siblings ...)
  2021-06-01  8:14 ` rguenth at gcc dot gnu.org
@ 2022-05-27  9:41 ` rguenth at gcc dot gnu.org
  2022-06-28 10:37 ` jakub at gcc dot gnu.org
  2023-07-07  8:29 ` rguenth at gcc dot gnu.org
  7 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-05-27  9:41 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|9.5                         |10.4

--- Comment #10 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 9 branch is being closed

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

* [Bug c++/90926] [10 Regression] member char array with string literal initializer causes = {} to fail
       [not found] <bug-90926-4@http.gcc.gnu.org/bugzilla/>
                   ` (5 preceding siblings ...)
  2022-05-27  9:41 ` [Bug c++/90926] [10 " rguenth at gcc dot gnu.org
@ 2022-06-28 10:37 ` jakub at gcc dot gnu.org
  2023-07-07  8:29 ` rguenth at gcc dot gnu.org
  7 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2022-06-28 10:37 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|10.4                        |10.5

--- Comment #11 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 10.4 is being released, retargeting bugs to GCC 10.5.

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

* [Bug c++/90926] [10 Regression] member char array with string literal initializer causes = {} to fail
       [not found] <bug-90926-4@http.gcc.gnu.org/bugzilla/>
                   ` (6 preceding siblings ...)
  2022-06-28 10:37 ` jakub at gcc dot gnu.org
@ 2023-07-07  8:29 ` rguenth at gcc dot gnu.org
  7 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-07-07  8:29 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|10.5                        |11.0
      Known to work|                            |11.1.0
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED
      Known to fail|                            |10.5.0

--- Comment #12 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed for GCC 11.

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

end of thread, other threads:[~2023-07-07  8:29 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-90926-4@http.gcc.gnu.org/bugzilla/>
2021-01-05 11:15 ` [Bug c++/90926] [8/9/10/11 Regression] member char array with string literal initializer causes = {} to fail thomgree at cisco dot com
2021-02-04 15:46 ` cvs-commit at gcc dot gnu.org
2021-02-04 16:39 ` [Bug c++/90926] [8/9/10 " jason at gcc dot gnu.org
2021-05-14  9:51 ` [Bug c++/90926] [9/10 " jakub at gcc dot gnu.org
2021-06-01  8:14 ` rguenth at gcc dot gnu.org
2022-05-27  9:41 ` [Bug c++/90926] [10 " rguenth at gcc dot gnu.org
2022-06-28 10:37 ` jakub at gcc dot gnu.org
2023-07-07  8:29 ` rguenth 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).