This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/54180] a bug using strcat function - it depends on variable declare order, but it should not.
- From: "lirex.software at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 18 Aug 2012 21:16:21 +0000
- Subject: [Bug c++/54180] a bug using strcat function - it depends on variable declare order, but it should not.
- Auto-submitted: auto-generated
- References: <bug-54180-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54180
Denis Kolesnik <lirex.software at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |UNCONFIRMED
Resolution|INVALID |
--- Comment #16 from Denis Kolesnik <lirex.software at gmail dot com> 2012-08-18 21:16:21 UTC ---
(In reply to comment #14)
> Can you stop reopening this bug? The problem again is that you are writing
> past the array bounds and anytime that happens it is undefined behavior.
> Please fix the array bounds issue and you will see it works now.
Andrew I did fix my problem, but the program language standard of "C" is
violated.
That is why I consider it is as a bug.
Where I'm wrong here?