[Bug c++/97253] [c++20] last character not shown when printing out std::array <char> via -Wunused-local-typedefs

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Sep 30 11:21:38 GMT 2020


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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
           Keywords|                            |diagnostic
   Last reconfirmed|                            |2020-09-30
             Status|UNCONFIRMED                 |NEW

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
I think the bug is that it's trying to print char[4] as a quoted string, rather
than as an array of four elements. I would expect it to show {'a','b','c','d'}
instead.


More information about the Gcc-bugs mailing list