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/67930] segmentation fault


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67930

--- Comment #2 from BENAÃSSA <ka_bena at yahoo dot fr> ---

ÂThank you for your reply.

ÂComments::

ÂI am not convinced by your point of view.

Â1- the compilation step does not deliver any message.

Â2- I modify the string by address and this is permitted by C for any entity
not 
ÂÂÂ private in its context.

Â3- if the compiler gcc allows segmentation fault for basic operations on
pointers,
ÂÂÂ I think that this is a severe bug and in consequence the compiler must be
ÂÂÂ modified to remedie for such situations.

ÂThis is my point of view.ÂÂÂ 
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ A.BenaÃssa 


     Le Lundi 12 octobre 2015 13h16, mpolacek at gcc dot gnu.org
<gcc-bugzilla@gcc.gnu.org> a Ãcrit :


 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67930

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

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

--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
You're trying to modify a string literal. That's no-no.

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