This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/54180] a bug using strcat function - it depends on variable declare order, but it should not.


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?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]