------- Comment #1 from paolo dot carlini at oracle dot com 2009-09-09 13:28
-------
Your code is clearly invalid: str points to "test", but that memory itself is
read-only, roughly speaking. More correctly, the Standard says that the effect
of attempting to modify a string literal is undefined, ie, *anything* can
happen.
--
paolo dot carlini at oracle dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41318