[Bug c++/85728] strncpy -Wstringop-truncation

msebor at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu May 10 16:20:00 GMT 2018


Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |msebor at gcc dot gnu.org
         Resolution|---                         |INVALID

--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
Please review https://gcc.gnu.org/bugs to see what information GCC bug reports
are expected to include.  This one contains none of the requested information. 
As far as I can see the warning message reflects the effect of the strncpy call
in the function but the source code printed by the message doesn't correspond
to the source code so it's not clear how the diagnostic messages are related to
the code snippet, or even what it is you are trying to point out.  Thus this is
not a valid report.

If you can provide the requested information and explain what you think is
wrong with GCC's output feel free to reopen it.

More information about the Gcc-bugs mailing list