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 #9 from Denis Kolesnik <lirex.software at gmail dot com> 2012-08-10 14:16:34 UTC ---
With any length(a length which is declared is of accepted range) it considered
as a variable, so it should be processed whithout dependance on
declare order.

Functions strcpy and strcat should handle so a CHAR array variable
as it is a line which ends correspondly. They even do, but not in any declare
order. They should do in in any declare order.

It is a bug anyway.


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